Commit 2e8789b0 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update

ICE1724 driver
Fixed the internal clock control.

This fixes a bug that SPDIF-in mode can't be reset once after it's set.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 91844570
...@@ -439,9 +439,9 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force ...@@ -439,9 +439,9 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force
break; break;
} }
old = inb(ICEMT1724(ice, RATE)); old = inb(ICEMT1724(ice, RATE));
val |= (old & 0xf0); if (old != val)
outb(val, ICEMT1724(ice, RATE)); outb(val, ICEMT1724(ice, RATE));
if (rate == ice->cur_rate) { else if (rate == ice->cur_rate) {
spin_unlock_irqrestore(&ice->reg_lock, flags); spin_unlock_irqrestore(&ice->reg_lock, flags);
return; return;
} }
......
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