* [PATCH] core/timer.c fixes
@ 2002-07-22 8:30 Clemens Ladisch
0 siblings, 0 replies; only message in thread
From: Clemens Ladisch @ 2002-07-22 8:30 UTC (permalink / raw)
To: alsa-devel
The snd_timer_limit module parameter isn't used.
Leading zeros in the fractional part of the timer hardware resolution
are omitted.
Index: core/timer.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/timer.c,v
retrieving revision 1.10
diff -u -r1.10 timer.c
--- core/timer.c 29 Apr 2002 13:51:35 -0000 1.10
+++ core/timer.c 22 Jul 2002 08:14:46 -0000
@@ -35,13 +35,10 @@
#include <linux/kerneld.h>
#endif
-int snd_timer_limit = 1;
MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>, Takashi Iwai <tiwai@suse.de>");
MODULE_DESCRIPTION("ALSA timer interface");
MODULE_LICENSE("GPL");
MODULE_CLASSES("{sound}");
-MODULE_PARM(snd_timer_limit, "i");
-MODULE_PARM_DESC(snd_timer_limit, "Maximum global timers in system. (1 by default)");
typedef struct {
snd_timer_instance_t *timeri;
@@ -876,7 +873,7 @@
}
snd_iprintf(buffer, "%s :", timer->name);
if (timer->hw.resolution)
- snd_iprintf(buffer, " %lu.%luus (%lu ticks)", timer->hw.resolution / 1000, timer->hw.resolution % 1000,
timer->hw.ticks);
+ snd_iprintf(buffer, " %lu.%03luus (%lu ticks)", timer->hw.resolution / 1000, timer->hw.resolution % 1000,
timer->hw.ticks);
if (timer->hw.flags & SNDRV_TIMER_HW_SLAVE)
snd_iprintf(buffer, " SLAVE");
snd_iprintf(buffer, "\n");
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-22 8:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-22 8:30 [PATCH] core/timer.c fixes Clemens Ladisch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.