]> git.neil.brown.name Git - history.git/commitdiff
ALSA CVS update
authorJaroslav Kysela <perex@suse.cz>
Thu, 25 Sep 2003 17:19:58 +0000 (19:19 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 25 Sep 2003 17:19:58 +0000 (19:19 +0200)
D:2003/09/10 19:01:16
C:ICE1724 driver
A:Takashi Iwai <tiwai@suse.de>
F:pci/ice1712/ice1724.c:1.17->1.18
L:fixed the rate locking bug: the rate locking couldn't be changed any more
L:once if iec958 input is chosen.

sound/pci/ice1712/ice1724.c

index 82c798438ef3625654b1b6f2636535fa9658856d..efc03aa94de7a9b452e3f35b5c3fb8ffcb271c3a 100644 (file)
@@ -382,11 +382,6 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force
                return;
        }
 
-       if (rate == ice->cur_rate) {
-               spin_unlock_irqrestore(&ice->reg_lock, flags);
-               return;
-       }
-
        switch (rate) {
        case 8000: val = 6; break;
        case 9600: val = 3; break;
@@ -409,6 +404,11 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force
                break;
        }
        outb(val, ICEMT1724(ice, RATE));
+       if (rate == ice->cur_rate) {
+               spin_unlock_irqrestore(&ice->reg_lock, flags);
+               return;
+       }
+
        ice->cur_rate = rate;
 
        /* check MT02 */