Skip to contentSkip to conversation

Special AC97 patch for ASUS W1000/CMI9739 laptop.

PATCH Applied James Courtier-Dutton 2 participants 2 messages Jan 23, 2005 – Jan 24, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Special AC97 patch for ASUS W1000/CMI9739 laptop.

This patch fixes sound output on the ASUS W1000 laptop with the CMI9739 chip. It wrongly reports that it has a SPDIF in, when in fact we wish to use the EAPD pin.

Signed off: [email protected]

Index: alsa-driver/alsa-kernel/pci/ac97/ac97_patch.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_patch.c,v retrieving revision 1.70

alsa-kernel/pci/ac97/ac97_patch.c +9 -0
diff -u -r1.70 ac97_patch.c
@@ -1916,6 +1916,15 @@
 	/* FIXME: set up GPIO */
 	snd_ac97_write_cache(ac97, 0x70, 0x0100);
 	snd_ac97_write_cache(ac97, 0x72, 0x0020);
+	/* Special exception for ASUS W1000/CMI9739. It does not have an SPDIF in. */
+	if (ac97->pci &&
+	     ac97->subsystem_vendor == 0x1043 &&
+	     ac97->subsystem_device == 0x1843) {
+		snd_ac97_write_cache(ac97, AC97_CM9739_SPDIF_CTRL,
+			snd_ac97_read(ac97, AC97_CM9739_SPDIF_CTRL) & ~0x01);
+		snd_ac97_write_cache(ac97, AC97_CM9739_MULTI_CHAN,
+			snd_ac97_read(ac97, AC97_CM9739_MULTI_CHAN) | (1 << 14));
+	}
 
 	return 0;
 }
Applied
#1 lore raw

At Sun, 23 Jan 2005 16:14:04 +0000,

Quoted 6 lines · James Courtier-Dutton

This patch fixes sound output on the ASUS W1000 laptop with the CMI9739 chip. It wrongly reports that it has a SPDIF in, when in fact we wish to use the EAPD pin.

Signed off: [email protected]

Thanks, applied now to CVS.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl