Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: timer: automatically load the high-resolution timer

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>

authored by

Clemens Ladisch and committed by
Takashi Iwai
109fef9e 47228e48

+2 -2
+2 -2
sound/core/timer.c
··· 34 34 #include <sound/initval.h> 35 35 #include <linux/kmod.h> 36 36 37 - #if defined(CONFIG_SND_HPET) || defined(CONFIG_SND_HPET_MODULE) 38 - #define DEFAULT_TIMER_LIMIT 3 37 + #if defined(CONFIG_SND_HRTIMER) || defined(CONFIG_SND_HRTIMER_MODULE) 38 + #define DEFAULT_TIMER_LIMIT 4 39 39 #elif defined(CONFIG_SND_RTCTIMER) || defined(CONFIG_SND_RTCTIMER_MODULE) 40 40 #define DEFAULT_TIMER_LIMIT 2 41 41 #else