Skip to content

Commit

Permalink
ALSA: wss_lib: fix AZT2320 probe.
Browse files Browse the repository at this point in the history
After the transition from cs4321_lib to wss_lib, azt2320 probe visits
snd_ad1848_probe during detection. It expects register 0 (LEFT_INPUT)
to be able to retain the value 0xaa during detection but AZT2320 does
not support MIC gain meaning it reads back as 0x8a instead.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Rene Herman authored and Jaroslav Kysela committed Aug 6, 2008
1 parent ebae225 commit 6ddfa74
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions sound/isa/wss/wss_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,11 +1168,13 @@ static int snd_ad1848_probe(struct snd_wss *chip)
ad1847 = 1;
break;
}
if (snd_wss_in(chip, CS4231_LEFT_INPUT) == 0xaa &&
rev == 0x45) {
spin_unlock_irqrestore(&chip->reg_lock, flags);
id = 1;
break;
if (rev == 0x45) {
rev = snd_wss_in(chip, CS4231_LEFT_INPUT);
if (rev == 0xaa || rev == 0x8a) {
spin_unlock_irqrestore(&chip->reg_lock, flags);
id = 1;
break;
}
}
spin_unlock_irqrestore(&chip->reg_lock, flags);
}
Expand Down

0 comments on commit 6ddfa74

Please sign in to comment.