|
@@ -589,12 +589,12 @@ static int wm9712_reset(struct snd_soc_codec *codec, int try_warm)
|
|
|
{
|
|
|
if (try_warm && soc_ac97_ops.warm_reset) {
|
|
|
soc_ac97_ops.warm_reset(codec->ac97);
|
|
|
- if (!(ac97_read(codec, 0) & 0x8000))
|
|
|
+ if (ac97_read(codec, 0) == wm9712_reg[0])
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
soc_ac97_ops.reset(codec->ac97);
|
|
|
- if (ac97_read(codec, 0) & 0x8000)
|
|
|
+ if (ac97_read(codec, 0) != wm9712_reg[0])
|
|
|
goto err;
|
|
|
return 0;
|
|
|
|