提交 ccfcf7d1 编写于 作者: T Takashi Iwai

ALSA: hda - Add missing snd_hda_jack_detect_enable() for simple_hdmi*()

Reported-by: NAnnie Liu <annieliu@viatech.com.cn>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 21cd683d
......@@ -1415,13 +1415,15 @@ static int simple_playback_init(struct hda_codec *codec)
int i;
for (i = 0; i < spec->num_pins; i++) {
snd_hda_codec_write(codec, spec->pins[i].pin_nid, 0,
hda_nid_t pin = spec->pins[i].pin_nid;
snd_hda_codec_write(codec, pin, 0,
AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT);
/* some codecs require to unmute the pin */
if (get_wcaps(codec, spec->pins[i].pin_nid) & AC_WCAP_OUT_AMP)
snd_hda_codec_write(codec, spec->pins[i].pin_nid, 0,
if (get_wcaps(codec, pin) & AC_WCAP_OUT_AMP)
snd_hda_codec_write(codec, pin, 0,
AC_VERB_SET_AMP_GAIN_MUTE,
AMP_OUT_UNMUTE);
snd_hda_jack_detect_enable(codec, pin, pin);
}
snd_hda_jack_report_sync(codec);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册