[PATCH] [UBUNTU:sound/pci/ac97/] Add workaround for ASUS A6KM

crimsun at fungus.sh.nu crimsun at fungus.sh.nu
Fri Jun 2 21:08:44 UTC 2006


Subject: [PATCH] [UBUNTU:sound/pci/ac97/] Add workaround for ASUS A6KM

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

Added a workaround for ASUS A6KM board that requires EAPD rather than
SPDIF-in.

Signed-off-by: Daniel T Chen <crimsun at ubuntu.com>

---

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

fd89141ff6712e8eb9832ddcf4072abe4743860b
diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c
index 6cf7db6..39e46da 100644
--- a/sound/pci/ac97/ac97_patch.c
+++ b/sound/pci/ac97/ac97_patch.c
@@ -2051,7 +2051,10 @@ int patch_alc650(ac97_t * ac97)
 	/* Enable SPDIF-IN only on Rev.E and above */
 	val = snd_ac97_read(ac97, AC97_ALC650_CLOCK);
 	/* SPDIF IN with pin 47 */
-	if (ac97->spec.dev_flags)
+	if (ac97->spec.dev_flags &&
+	    /* ASUS A6KM requires EAPD */
+	    ! (ac97->subsystem_vendor == 0x1043 &&
+	       ac97->subsystem_device == 0x1103))
 		val |= 0x03; /* enable */
 	else
 		val &= ~0x03; /* disable */
-- 
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/20060602/fc259aab/attachment.sig>


More information about the kernel-team mailing list