[alsa-devel] ALSA: hda - add speaker and fix headphone switch for ALC883

okias d.okias at gmail.com
Tue Sep 15 15:16:49 CEST 2009


ALSA: hda - add speaker and fix headphone switch for ALC883

This patch changing "Headphone Playback Switch" from 0x1b to 0x14
(documentation says "Port-D", 3,5 jack) and adding "Speaker Playback
Switch" 0x1b (Port-E, LINE2).

Signed-off-by: David Heidelberger <d.okias at gmail.com>

---

--- a/sound/pci/hda/patch_realtek.c	2009-09-15 14:54:37.067310114 +0200
+++ b/sound/pci/hda/patch_realtek.c	2009-09-15 14:54:43.444437970 +0200
@@ -7979,6 +7979,8 @@
 static struct snd_kcontrol_new alc883_base_mixer[] = {
 	HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
 	HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),
+	HDA_CODEC_MUTE("Headphone Playback Switch", 0x14, 0x0, HDA_OUTPUT),
+	HDA_CODEC_MUTE("Speaker Playback Switch", 0x1b, 0x0, HDA_OUTPUT),
 	HDA_CODEC_VOLUME("Surround Playback Volume", 0x0d, 0x0, HDA_OUTPUT),
 	HDA_BIND_MUTE("Surround Playback Switch", 0x0d, 2, HDA_INPUT),
 	HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x0e, 1, 0x0, HDA_OUTPUT),
@@ -7987,7 +7989,6 @@
 	HDA_BIND_MUTE_MONO("LFE Playback Switch", 0x0e, 2, 2, HDA_INPUT),
 	HDA_CODEC_VOLUME("Side Playback Volume", 0x0f, 0x0, HDA_OUTPUT),
 	HDA_BIND_MUTE("Side Playback Switch", 0x0f, 2, HDA_INPUT),
-	HDA_CODEC_MUTE("Headphone Playback Switch", 0x1b, 0x0, HDA_OUTPUT),
 	HDA_CODEC_VOLUME("CD Playback Volume", 0x0b, 0x04, HDA_INPUT),
 	HDA_CODEC_MUTE("CD Playback Switch", 0x0b, 0x04, HDA_INPUT),
 	HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x02, HDA_INPUT),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alc883_speaker-headphone_fix.patch
Type: application/octet-stream
Size: 1473 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20090915/002ab8ac/attachment-0001.dll 


More information about the Alsa-devel mailing list