Commit 7fb2d723 authored by Florian Zumbiehl's avatar Florian Zumbiehl Committed by Takashi Iwai

ALSA: cs46xx - Do test writes to register AC97_REC_GAIN in

snd_cs46xx_codec_reset() bypassing the register cache, so as to not
clobber the cached register value during resume.
Signed-off-by: default avatarFlorian Zumbiehl <florz@florz.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 7fb3a069
...@@ -2266,7 +2266,7 @@ static void snd_cs46xx_codec_reset (struct snd_ac97 * ac97) ...@@ -2266,7 +2266,7 @@ static void snd_cs46xx_codec_reset (struct snd_ac97 * ac97)
return; return;
/* test if we can write to the record gain volume register */ /* test if we can write to the record gain volume register */
snd_ac97_write_cache(ac97, AC97_REC_GAIN, 0x8a05); snd_ac97_write(ac97, AC97_REC_GAIN, 0x8a05);
if ((err = snd_ac97_read(ac97, AC97_REC_GAIN)) == 0x8a05) if ((err = snd_ac97_read(ac97, AC97_REC_GAIN)) == 0x8a05)
return; return;
......
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