ALSA: timer: automatically load the high-resolution timer
authorClemens Ladisch <clemens@ladisch.de>
Thu, 18 Nov 2010 08:53:54 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Nov 2010 07:14:31 +0000 (08:14 +0100)
Increase the default timer limit so that snd-hrtimer.ko can be
automatically loaded when needed, e.g., when used as the default
sequencer timer.  This replaces the check for the obsolete
CONFIG_SND_HPET.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c

index 13afb60999b9f69263f461108a5f58aeeca4cae6..b3aaa600dcc211fe9c9ee0fbc0b14482ca68e99f 100644 (file)
@@ -34,8 +34,8 @@
 #include <sound/initval.h>
 #include <linux/kmod.h>
 
-#if defined(CONFIG_SND_HPET) || defined(CONFIG_SND_HPET_MODULE)
-#define DEFAULT_TIMER_LIMIT 3
+#if defined(CONFIG_SND_HRTIMER) || defined(CONFIG_SND_HRTIMER_MODULE)
+#define DEFAULT_TIMER_LIMIT 4
 #elif defined(CONFIG_SND_RTCTIMER) || defined(CONFIG_SND_RTCTIMER_MODULE)
 #define DEFAULT_TIMER_LIMIT 2
 #else