summaryrefslogtreecommitdiff
path: root/sound/pci/cs46xx
diff options
context:
space:
mode:
authorFlorian Zumbiehl <florz@florz.de>2010-02-18 07:01:20 +0100
committerTakashi Iwai <tiwai@suse.de>2010-02-18 08:10:54 +0100
commit7fb2d723e65cc793213515fa1da092b7c92a5b48 (patch)
tree4508b08280175694c7c148e824af4261c82c14bc /sound/pci/cs46xx
parent7fb3a069bc5d3577409c2ae89f89cd264ff85816 (diff)
downloadlinux-3.10-7fb2d723e65cc793213515fa1da092b7c92a5b48.tar.gz
linux-3.10-7fb2d723e65cc793213515fa1da092b7c92a5b48.tar.bz2
linux-3.10-7fb2d723e65cc793213515fa1da092b7c92a5b48.zip
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: Florian Zumbiehl <florz@florz.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index 56fcf00c0e2..9fea5bb448c 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -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;