diff options
-rw-r--r-- | sound/core/Kconfig | 12 | ||||
-rw-r--r-- | sound/core/seq/seq.c | 8 |
2 files changed, 19 insertions, 1 deletions
diff --git a/sound/core/Kconfig b/sound/core/Kconfig index 6ae1d2e24b4e..48cf45cfd0b7 100644 --- a/sound/core/Kconfig +++ b/sound/core/Kconfig | |||
@@ -99,6 +99,18 @@ config SND_RTCTIMER | |||
99 | To compile this driver as a module, choose M here: the module | 99 | To compile this driver as a module, choose M here: the module |
100 | will be called snd-rtctimer. | 100 | will be called snd-rtctimer. |
101 | 101 | ||
102 | config SND_SEQ_RTCTIMER_DEFAULT | ||
103 | bool "Use RTC as default sequencer timer" | ||
104 | depends on SND_RTCTIMER && SND_SEQUENCER | ||
105 | default y | ||
106 | help | ||
107 | Say Y here to use the RTC timer as the default sequencer | ||
108 | timer. This is strongly recommended because it ensures | ||
109 | precise MIDI timing even when the system timer runs at less | ||
110 | than 1000 Hz. | ||
111 | |||
112 | If in doubt, say Y. | ||
113 | |||
102 | config SND_VERBOSE_PRINTK | 114 | config SND_VERBOSE_PRINTK |
103 | bool "Verbose printk" | 115 | bool "Verbose printk" |
104 | depends on SND | 116 | depends on SND |
diff --git a/sound/core/seq/seq.c b/sound/core/seq/seq.c index 7449d2a62629..24644150f24b 100644 --- a/sound/core/seq/seq.c +++ b/sound/core/seq/seq.c | |||
@@ -43,7 +43,13 @@ int seq_client_load[64] = {[0 ... 63] = -1}; | |||
43 | int seq_default_timer_class = SNDRV_TIMER_CLASS_GLOBAL; | 43 | int seq_default_timer_class = SNDRV_TIMER_CLASS_GLOBAL; |
44 | int seq_default_timer_sclass = SNDRV_TIMER_SCLASS_NONE; | 44 | int seq_default_timer_sclass = SNDRV_TIMER_SCLASS_NONE; |
45 | int seq_default_timer_card = -1; | 45 | int seq_default_timer_card = -1; |
46 | int seq_default_timer_device = SNDRV_TIMER_GLOBAL_SYSTEM; | 46 | int seq_default_timer_device = |
47 | #ifdef CONFIG_SND_SEQ_RTCTIMER_DEFAULT | ||
48 | SNDRV_TIMER_GLOBAL_RTC | ||
49 | #else | ||
50 | SNDRV_TIMER_GLOBAL_SYSTEM | ||
51 | #endif | ||
52 | ; | ||
47 | int seq_default_timer_subdevice = 0; | 53 | int seq_default_timer_subdevice = 0; |
48 | int seq_default_timer_resolution = 0; /* Hz */ | 54 | int seq_default_timer_resolution = 0; /* Hz */ |
49 | 55 | ||