[PATCH] [UBUNTU:sound/pci/ac97/] Fix suspend/resume for AD1888 codec (ac97_patch)

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Tue Jun 20 07:16:43 UTC 2006


Subject: [PATCH] [UBUNTU:sound/pci/ac97/] Fix suspend/resume for AD1888 codec (ac97_patch)

UpstreamStatus: Added in upstream alsa-kernel hg changeset d53345c31cb8
                http://hg-mirror.alsa-project.org/alsa-kernel?cmd=changeset;node=d53345c31cb8fa97757f80027676f403b90dbdd7;style=raw

This patch adds a write to an undocumented register, 0x60 Extended
Codec Register Page, in the AD1888 codec. It is necessary in order
to make suspend/resume work with the AD1888.

Signed-off-by: Jaya Kumar <jayakumar.alsa at gmail.com>
Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>

---

 sound/pci/ac97/ac97_patch.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

729119562b443f4f2dac4c25fa26beebdfe6faef
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index 72f1a51..212fa20 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -1365,6 +1365,12 @@ static void ad18xx_resume(ac97_t *ac97)
 
 	snd_ac97_restore_iec958(ac97);
 }
+
+static void ad1888_resume(ac97_t *ac97)
+{
+	ad18xx_resume(ac97);
+	snd_ac97_write_cache(ac97, AC97_CODEC_CLASS_REV, 0x8080);
+}
 #endif
 
 int patch_ad1819(ac97_t * ac97)
@@ -1843,7 +1849,7 @@ static struct snd_ac97_build_ops patch_a
 	.build_post_spdif = patch_ad198x_post_spdif,
 	.build_specific = patch_ad1888_specific,
 #ifdef CONFIG_PM
-	.resume = ad18xx_resume,
+	.resume = ad1888_resume,
 #endif
 	.update_jacks = ad1888_update_jacks,
 };
-- 
1.1.3


-- 
Daniel T. Chen            crimsun at ubuntu.com
GPG key:   www.sh.nu/~crimsun/pubkey.gpg.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20060620/a3a6722d/attachment.sig>


More information about the kernel-team mailing list