Commit 6ddfa743 authored by Rene Herman's avatar Rene Herman Committed by Jaroslav Kysela

ALSA: wss_lib: fix AZT2320 probe.

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: default avatarRene Herman <rene.herman@gmail.com>
Acked-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent ebae2259
...@@ -1168,12 +1168,14 @@ static int snd_ad1848_probe(struct snd_wss *chip) ...@@ -1168,12 +1168,14 @@ static int snd_ad1848_probe(struct snd_wss *chip)
ad1847 = 1; ad1847 = 1;
break; break;
} }
if (snd_wss_in(chip, CS4231_LEFT_INPUT) == 0xaa && if (rev == 0x45) {
rev == 0x45) { rev = snd_wss_in(chip, CS4231_LEFT_INPUT);
if (rev == 0xaa || rev == 0x8a) {
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
id = 1; id = 1;
break; break;
} }
}
spin_unlock_irqrestore(&chip->reg_lock, flags); spin_unlock_irqrestore(&chip->reg_lock, flags);
} }
} }
......
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