]> err.no Git - linux-2.6/commit
[ALSA] seq-timer: restrict timer frequencies
authorClemens Ladisch <clemens@ladisch.de>
Wed, 19 Oct 2005 12:38:30 +0000 (14:38 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 4 Nov 2005 12:19:07 +0000 (13:19 +0100)
commit87ef7779be825c187747b6b39a24d5326d610c53
treefd1ca6f88f1cadc68a07054beef067f210010039
parent051b51653309db976c9665f8d4b1774fa1f8124a
[ALSA] seq-timer: restrict timer frequencies

Modules: ALSA sequencer

When no default timer frequency has been set, initialize_timer() just
uses the maximum frequency supported by the timer, which is ridiculously
high on 96 kHz timers.

This patch introduces a default frequency of 1000 Hz for this case, and
makes sure that a frequency set by the user isn't too high.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/core/seq/seq_timer.c