From 2e8789b00d9ba902a3d74211d3cefbaff4209b3d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 26 Aug 2004 16:38:23 +0200 Subject: [PATCH] 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: Takashi Iwai --- sound/pci/ice1712/ice1724.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 6d3b903631dae..b3b63219408d7 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c @@ -439,9 +439,9 @@ static void snd_vt1724_set_pro_rate(ice1712_t *ice, unsigned int rate, int force break; } old = inb(ICEMT1724(ice, RATE)); - val |= (old & 0xf0); - outb(val, ICEMT1724(ice, RATE)); - if (rate == ice->cur_rate) { + if (old != val) + outb(val, ICEMT1724(ice, RATE)); + else if (rate == ice->cur_rate) { spin_unlock_irqrestore(&ice->reg_lock, flags); return; } -- 2.53.0