提交 2a2ed0df 编写于 作者: T Takashi Iwai

ALSA: hda - Don't enable auto-mute but for speakers in patch_realtek.c

Enable auto-muting in model=auto only for devices with HP and speakers.
For devices with HP and line-outs, don't enable the auto-muting.

Also, add a debug print to show the auto-mute feature.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 299f293b
...@@ -1099,13 +1099,16 @@ static void alc_init_auto_hp(struct hda_codec *codec) ...@@ -1099,13 +1099,16 @@ static void alc_init_auto_hp(struct hda_codec *codec)
return; return;
if (!spec->autocfg.speaker_pins[0]) { if (!spec->autocfg.speaker_pins[0]) {
if (spec->autocfg.line_out_pins[0]) if (spec->autocfg.line_out_pins[0] &&
spec->autocfg.line_out_type == AUTO_PIN_SPEAKER_OUT)
spec->autocfg.speaker_pins[0] = spec->autocfg.speaker_pins[0] =
spec->autocfg.line_out_pins[0]; spec->autocfg.line_out_pins[0];
else else
return; return;
} }
snd_printdd("realtek: Enable HP auto-muting on NID 0x%x\n",
spec->autocfg.hp_pins[0]);
snd_hda_codec_write_cache(codec, spec->autocfg.hp_pins[0], 0, snd_hda_codec_write_cache(codec, spec->autocfg.hp_pins[0], 0,
AC_VERB_SET_UNSOLICITED_ENABLE, AC_VERB_SET_UNSOLICITED_ENABLE,
AC_USRSP_EN | ALC880_HP_EVENT); AC_USRSP_EN | ALC880_HP_EVENT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册