Skip to content

Commit 109fef9

Browse files
cladischtiwai
authored andcommitted
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>
1 parent 47228e4 commit 109fef9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sound/core/timer.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
#include <sound/initval.h>
3535
#include <linux/kmod.h>
3636

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
3939
#elif defined(CONFIG_SND_RTCTIMER) || defined(CONFIG_SND_RTCTIMER_MODULE)
4040
#define DEFAULT_TIMER_LIMIT 2
4141
#else

0 commit comments

Comments
 (0)