]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] Add a workaround for ASUS A6KM
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 May 2006 16:22:06 +0000 (18:22 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 22 Jun 2006 19:33:22 +0000 (21:33 +0200)
Added a workaround for ASUS A6KM board that requires EAPD
rather than SPDIF-in.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ac97/ac97_patch.c

index 4d9cf37300f75ae8e0f70b786a4566e81bfc4e7c..720b419e0c63d219c0c06a7ab529f217efd3ea35 100644 (file)
@@ -2048,7 +2048,10 @@ int patch_alc650(struct snd_ac97 * 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 */