diff options
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index ea3559fe3328..1ed0f0757e01 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -1020,13 +1020,13 @@ static void cxt5047_hp2_automute(struct hda_codec *codec) | |||
1020 | static void cxt5047_hp_automic(struct hda_codec *codec) | 1020 | static void cxt5047_hp_automic(struct hda_codec *codec) |
1021 | { | 1021 | { |
1022 | static struct hda_verb mic_jack_on[] = { | 1022 | static struct hda_verb mic_jack_on[] = { |
1023 | {0x15, AC_VERB_SET_AMP_GAIN_MUTE, 0xb080}, | 1023 | {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE}, |
1024 | {0x17, AC_VERB_SET_AMP_GAIN_MUTE, 0xb000}, | 1024 | {0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, |
1025 | {} | 1025 | {} |
1026 | }; | 1026 | }; |
1027 | static struct hda_verb mic_jack_off[] = { | 1027 | static struct hda_verb mic_jack_off[] = { |
1028 | {0x17, AC_VERB_SET_AMP_GAIN_MUTE, 0xb080}, | 1028 | {0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE}, |
1029 | {0x15, AC_VERB_SET_AMP_GAIN_MUTE, 0xb000}, | 1029 | {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, |
1030 | {} | 1030 | {} |
1031 | }; | 1031 | }; |
1032 | unsigned int present; | 1032 | unsigned int present; |
@@ -1043,8 +1043,7 @@ static void cxt5047_hp_automic(struct hda_codec *codec) | |||
1043 | static void cxt5047_hp_unsol_event(struct hda_codec *codec, | 1043 | static void cxt5047_hp_unsol_event(struct hda_codec *codec, |
1044 | unsigned int res) | 1044 | unsigned int res) |
1045 | { | 1045 | { |
1046 | res >>= 26; | 1046 | switch (res >> 26) { |
1047 | switch (res) { | ||
1048 | case CONEXANT_HP_EVENT: | 1047 | case CONEXANT_HP_EVENT: |
1049 | cxt5047_hp_automute(codec); | 1048 | cxt5047_hp_automute(codec); |
1050 | break; | 1049 | break; |
@@ -1253,6 +1252,17 @@ static struct snd_kcontrol_new cxt5047_test_mixer[] = { | |||
1253 | .get = conexant_mux_enum_get, | 1252 | .get = conexant_mux_enum_get, |
1254 | .put = conexant_mux_enum_put, | 1253 | .put = conexant_mux_enum_put, |
1255 | }, | 1254 | }, |
1255 | HDA_CODEC_VOLUME("Input-1 Volume", 0x1a, 0x0, HDA_INPUT), | ||
1256 | HDA_CODEC_MUTE("Input-1 Switch", 0x1a, 0x0, HDA_INPUT), | ||
1257 | HDA_CODEC_VOLUME("Input-2 Volume", 0x1a, 0x1, HDA_INPUT), | ||
1258 | HDA_CODEC_MUTE("Input-2 Switch", 0x1a, 0x1, HDA_INPUT), | ||
1259 | HDA_CODEC_VOLUME("Input-3 Volume", 0x1a, 0x2, HDA_INPUT), | ||
1260 | HDA_CODEC_MUTE("Input-3 Switch", 0x1a, 0x2, HDA_INPUT), | ||
1261 | HDA_CODEC_VOLUME("Input-4 Volume", 0x1a, 0x3, HDA_INPUT), | ||
1262 | HDA_CODEC_MUTE("Input-4 Switch", 0x1a, 0x3, HDA_INPUT), | ||
1263 | HDA_CODEC_VOLUME("Input-5 Volume", 0x1a, 0x4, HDA_INPUT), | ||
1264 | HDA_CODEC_MUTE("Input-5 Switch", 0x1a, 0x4, HDA_INPUT), | ||
1265 | |||
1256 | { } /* end */ | 1266 | { } /* end */ |
1257 | }; | 1267 | }; |
1258 | 1268 | ||