aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/pci/hda/patch_conexant.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 250b74f8136e..9077e4174ee6 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -1605,6 +1605,11 @@ static void cxt5051_update_speaker(struct hda_codec *codec)
1605{ 1605{
1606 struct conexant_spec *spec = codec->spec; 1606 struct conexant_spec *spec = codec->spec;
1607 unsigned int pinctl; 1607 unsigned int pinctl;
1608 /* headphone pin */
1609 pinctl = (spec->hp_present && spec->cur_eapd) ? PIN_HP : 0;
1610 snd_hda_codec_write(codec, 0x16, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
1611 pinctl);
1612 /* speaker pin */
1608 pinctl = (!spec->hp_present && spec->cur_eapd) ? PIN_OUT : 0; 1613 pinctl = (!spec->hp_present && spec->cur_eapd) ? PIN_OUT : 0;
1609 snd_hda_codec_write(codec, 0x1a, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 1614 snd_hda_codec_write(codec, 0x1a, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
1610 pinctl); 1615 pinctl);