Skip to contentSkip to conversation

hda-codec: Add 4 channel support for Realtek ALC883

PATCH Applied Tobin Davis 2 participants 2 messages Sep 15, 2007 – Sep 17, 2007

lore
Share & tools
lore
#0 lore raw

I had a request for a 4 channel mode. This should implement front and surround outputs, leaving the 3rd plug for mic input.

Signed off by Tobin Davis <[email protected]>

pci/hda/patch_realtek.c +14 -1
diff -r 9fe2d7b6498b pci/hda/patch_realtek.c
@@ -6087,6 +6087,18 @@ static struct hda_verb alc883_3ST_ch2_in
 };
 
 /*
+ * 4ch mode
+ */
+static struct hda_verb alc883_3ST_ch4_init[] = {
+	{ 0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 },
+	{ 0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE },
+	{ 0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
+	{ 0x1a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE },
+	{ 0x1a, AC_VERB_SET_CONNECT_SEL, 0x01 },
+	{ } /* end */
+};
+
+/*
  * 6ch mode
  */
 static struct hda_verb alc883_3ST_ch6_init[] = {
@@ -6099,8 +6111,9 @@ static struct hda_verb alc883_3ST_ch6_in
 	{ } /* end */
 };
 
-static struct hda_channel_mode alc883_3ST_6ch_modes[2] = {
+static struct hda_channel_mode alc883_3ST_6ch_modes[3] = {
 	{ 2, alc883_3ST_ch2_init },
+	{ 4, alc883_3ST_ch4_init },
 	{ 6, alc883_3ST_ch6_init },
 };
 

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Applied
#1 lore raw

At Sat, 15 Sep 2007 10:30:48 -0700,

Quoted 5 lines · Tobin Davis

I had a request for a 4 channel mode. This should implement front and surround outputs, leaving the 3rd plug for mic input.

Signed off by Tobin Davis <[email protected]>

Applied. Thanks!

Takashi