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.
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;
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 */