[ALSA] cmipci: fix lookup of double rates
commit0f28eca32b3064db29d4718156e692f4db75c7aa
authorClemens Ladisch <clemens@ladisch.de>
Mon, 17 Sep 2007 07:40:24 +0000 (17 09:40 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 14:50:34 +0000 (16 16:50 +0200)
treef5342c37d9062f1b3a66cff63b0820c3ce851146
parent8ffbc01e2cb2e203df910468f236c7b4e7b36f25
[ALSA] cmipci: fix lookup of double rates

When using one of the double sampling rates, use half the sample rate to
look up in the rates[] table, otherwise we stumble over the BUG().

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/cmipci.c