Skip to content

Commit

Permalink
ALSA: cs46xx - Do test writes to register AC97_REC_GAIN in
Browse files Browse the repository at this point in the history
snd_cs46xx_codec_reset() bypassing the register cache, so as to not
clobber the cached register value during resume.

Signed-off-by: Florian Zumbiehl <florz@florz.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Florian Zumbiehl authored and Takashi Iwai committed Feb 18, 2010
1 parent 7fb3a06 commit 7fb2d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/cs46xx/cs46xx_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2266,7 +2266,7 @@ static void snd_cs46xx_codec_reset (struct snd_ac97 * ac97)
return;

/* 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)
return;

Expand Down

0 comments on commit 7fb2d72

Please sign in to comment.