From 63e3a6259abc0f7e869c82cdd6b07786fbcacfc0 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 25 Sep 2003 19:19:58 +0200 Subject: [PATCH] ALSA CVS update D:2003/09/10 19:01:16 C:ICE1724 driver A:Takashi Iwai 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index 82c798438ef3..efc03aa94de7 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c @@ -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 */ -- 2.47.3