diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-06-30 13:47:06 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-07-28 12:10:04 +0200 |
commit | 52b723888c1a55d34551f9b0b9d9296e0e3e8d3c (patch) | |
tree | 57df026da13319fa608c38674e411f2d18c0de8c /sound/pci/ac97 | |
parent | 2eff7ec81eb586076974cb0918dffc5f4ad763d5 (diff) | |
download | op-kernel-dev-52b723888c1a55d34551f9b0b9d9296e0e3e8d3c.zip op-kernel-dev-52b723888c1a55d34551f9b0b9d9296e0e3e8d3c.tar.gz |
[ALSA] Fix resume of intel8x0
Intel8x0 driver,AC97 Codec
Fix resume of intel8x0 driver. The ac97 codec didn't restore some registers
properly, and the restore of ICH4 SPDIF and SDIN settings was missing.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ac97')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index a4b72cd..0677d41 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c @@ -367,6 +367,7 @@ int snd_ac97_update(ac97_t *ac97, unsigned short reg, unsigned short value) ac97->regs[reg] = value; ac97->bus->ops->write(ac97, reg, value); } + set_bit(reg, ac97->reg_accessed); up(&ac97->reg_mutex); return change; } @@ -410,6 +411,7 @@ int snd_ac97_update_bits_nolock(ac97_t *ac97, unsigned short reg, ac97->regs[reg] = new; ac97->bus->ops->write(ac97, reg, new); } + set_bit(reg, ac97->reg_accessed); return change; } |