diff options
Diffstat (limited to 'sound/pci/hda/patch_conexant.c')
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index d29d6d377904..f52c9ef3cc8c 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -3951,9 +3951,14 @@ static void cx_auto_init_output(struct hda_codec *codec) | |||
3951 | int i; | 3951 | int i; |
3952 | 3952 | ||
3953 | mute_outputs(codec, spec->multiout.num_dacs, spec->multiout.dac_nids); | 3953 | mute_outputs(codec, spec->multiout.num_dacs, spec->multiout.dac_nids); |
3954 | for (i = 0; i < cfg->hp_outs; i++) | 3954 | for (i = 0; i < cfg->hp_outs; i++) { |
3955 | unsigned int val = PIN_OUT; | ||
3956 | if (snd_hda_query_pin_caps(codec, cfg->hp_pins[i]) & | ||
3957 | AC_PINCAP_HP_DRV) | ||
3958 | val |= AC_PINCTL_HP_EN; | ||
3955 | snd_hda_codec_write(codec, cfg->hp_pins[i], 0, | 3959 | snd_hda_codec_write(codec, cfg->hp_pins[i], 0, |
3956 | AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP); | 3960 | AC_VERB_SET_PIN_WIDGET_CONTROL, val); |
3961 | } | ||
3957 | mute_outputs(codec, cfg->hp_outs, cfg->hp_pins); | 3962 | mute_outputs(codec, cfg->hp_outs, cfg->hp_pins); |
3958 | mute_outputs(codec, cfg->line_outs, cfg->line_out_pins); | 3963 | mute_outputs(codec, cfg->line_outs, cfg->line_out_pins); |
3959 | mute_outputs(codec, cfg->speaker_outs, cfg->speaker_pins); | 3964 | mute_outputs(codec, cfg->speaker_outs, cfg->speaker_pins); |