diff options
author | Tobin Davis <tdavis@dsl-only.net> | 2007-09-17 06:45:11 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 10:50:37 -0400 |
commit | b201131c43c155c62e799d9410708d10b2c9a6ad (patch) | |
tree | c8e7afbc1ce1dd22689f67f8066cfd11fe1101db /sound/pci | |
parent | c36fd8c3cd682fa9bbe5b2cb4b99e16625a37c94 (diff) |
[ALSA] hda-codec: Add 4 channel support for Realtek ALC883
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 <tdavis@dsl-only.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e8270862e1e2..93ff155f5947 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -6087,6 +6087,18 @@ static struct hda_verb alc883_3ST_ch2_init[] = { | |||
6087 | }; | 6087 | }; |
6088 | 6088 | ||
6089 | /* | 6089 | /* |
6090 | * 4ch mode | ||
6091 | */ | ||
6092 | static struct hda_verb alc883_3ST_ch4_init[] = { | ||
6093 | { 0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 }, | ||
6094 | { 0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE }, | ||
6095 | { 0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT }, | ||
6096 | { 0x1a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE }, | ||
6097 | { 0x1a, AC_VERB_SET_CONNECT_SEL, 0x01 }, | ||
6098 | { } /* end */ | ||
6099 | }; | ||
6100 | |||
6101 | /* | ||
6090 | * 6ch mode | 6102 | * 6ch mode |
6091 | */ | 6103 | */ |
6092 | static struct hda_verb alc883_3ST_ch6_init[] = { | 6104 | static struct hda_verb alc883_3ST_ch6_init[] = { |
@@ -6099,8 +6111,9 @@ static struct hda_verb alc883_3ST_ch6_init[] = { | |||
6099 | { } /* end */ | 6111 | { } /* end */ |
6100 | }; | 6112 | }; |
6101 | 6113 | ||
6102 | static struct hda_channel_mode alc883_3ST_6ch_modes[2] = { | 6114 | static struct hda_channel_mode alc883_3ST_6ch_modes[3] = { |
6103 | { 2, alc883_3ST_ch2_init }, | 6115 | { 2, alc883_3ST_ch2_init }, |
6116 | { 4, alc883_3ST_ch4_init }, | ||
6104 | { 6, alc883_3ST_ch6_init }, | 6117 | { 6, alc883_3ST_ch6_init }, |
6105 | }; | 6118 | }; |
6106 | 6119 | ||