From 74acdd7a35c2ed7f236202fa84a1047523d9ecba Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Tue, 6 Sep 2005 08:00:19 +0200 Subject: [PATCH] --- yaml --- r: 8835 b: refs/heads/master c: a4f508b27c6b32d15c923b119b3e90a2d6a9500f h: refs/heads/master i: 8833: 3b4245bbe928348fc4d9ae3709a811d20551d069 8831: 31da5f02e04af640010609ebbb7718a640c126f3 v: v3 --- [refs] | 2 +- trunk/sound/core/Kconfig | 12 ++++++++++++ trunk/sound/core/seq/seq.c | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6258f8105f39..1e8ec05ad513 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 43bcd973d6d05d16b876e09dcc49a09d3e48e88d +refs/heads/master: a4f508b27c6b32d15c923b119b3e90a2d6a9500f diff --git a/trunk/sound/core/Kconfig b/trunk/sound/core/Kconfig index 6ae1d2e24b4e..48cf45cfd0b7 100644 --- a/trunk/sound/core/Kconfig +++ b/trunk/sound/core/Kconfig @@ -99,6 +99,18 @@ config SND_RTCTIMER To compile this driver as a module, choose M here: the module will be called snd-rtctimer. +config SND_SEQ_RTCTIMER_DEFAULT + bool "Use RTC as default sequencer timer" + depends on SND_RTCTIMER && SND_SEQUENCER + default y + help + Say Y here to use the RTC timer as the default sequencer + timer. This is strongly recommended because it ensures + precise MIDI timing even when the system timer runs at less + than 1000 Hz. + + If in doubt, say Y. + config SND_VERBOSE_PRINTK bool "Verbose printk" depends on SND diff --git a/trunk/sound/core/seq/seq.c b/trunk/sound/core/seq/seq.c index 7449d2a62629..24644150f24b 100644 --- a/trunk/sound/core/seq/seq.c +++ b/trunk/sound/core/seq/seq.c @@ -43,7 +43,13 @@ int seq_client_load[64] = {[0 ... 63] = -1}; int seq_default_timer_class = SNDRV_TIMER_CLASS_GLOBAL; int seq_default_timer_sclass = SNDRV_TIMER_SCLASS_NONE; int seq_default_timer_card = -1; -int seq_default_timer_device = SNDRV_TIMER_GLOBAL_SYSTEM; +int seq_default_timer_device = +#ifdef CONFIG_SND_SEQ_RTCTIMER_DEFAULT + SNDRV_TIMER_GLOBAL_RTC +#else + SNDRV_TIMER_GLOBAL_SYSTEM +#endif + ; int seq_default_timer_subdevice = 0; int seq_default_timer_resolution = 0; /* Hz */