Skip to contentSkip to conversation

core/timer.c fixes

PATCH New Clemens Ladisch 1 participant 1 message Jul 22, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 core/timer.c fixes

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

timer.c +0 -4
diff -u -r1.10 timer.c
@@ -35,13 +35,10 @@
 #include <linux/kerneld.h>
 #endif
 
-int snd_timer_limit = 1;
 MODULE_AUTHOR("Jaroslav Kysela <[email protected]>, Takashi Iwai <[email protected]>");
 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