Commit 63e3a625 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

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.
parent 0c65601c
...@@ -382,11 +382,6 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force ...@@ -382,11 +382,6 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force
return; return;
} }
if (rate == ice->cur_rate) {
spin_unlock_irqrestore(&ice->reg_lock, flags);
return;
}
switch (rate) { switch (rate) {
case 8000: val = 6; break; case 8000: val = 6; break;
case 9600: val = 3; 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 ...@@ -409,6 +404,11 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force
break; break;
} }
outb(val, ICEMT1724(ice, RATE)); outb(val, ICEMT1724(ice, RATE));
if (rate == ice->cur_rate) {
spin_unlock_irqrestore(&ice->reg_lock, flags);
return;
}
ice->cur_rate = rate; ice->cur_rate = rate;
/* check MT02 */ /* check MT02 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment