mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-25 20:14:25 +08:00
ALSA: hda/realtek - Fix headset Mic no show at resume back for Lenovo ALC897 platform
commitd397b6e561
upstream. Headset Mic will no show at resume back. This patch will fix this issue. Fixes:d7f32791a9
("ALSA: hda/realtek - Add headset Mic support for Lenovo ALC897 platform") Cc: <stable@vger.kernel.org> Signed-off-by: Kailang Yang <kailang@realtek.com> Link: https://lore.kernel.org/r/4713d48a372e47f98bba0c6120fd8254@realtek.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3e31af7c46
commit
f4ffa18d2e
@ -10783,8 +10783,7 @@ static void alc897_hp_automute_hook(struct hda_codec *codec,
|
||||
|
||||
snd_hda_gen_hp_automute(codec, jack);
|
||||
vref = spec->gen.hp_jack_present ? (PIN_HP | AC_PINCTL_VREF_100) : PIN_HP;
|
||||
snd_hda_codec_write(codec, 0x1b, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
|
||||
vref);
|
||||
snd_hda_set_pin_ctl(codec, 0x1b, vref);
|
||||
}
|
||||
|
||||
static void alc897_fixup_lenovo_headset_mic(struct hda_codec *codec,
|
||||
@ -10793,6 +10792,10 @@ static void alc897_fixup_lenovo_headset_mic(struct hda_codec *codec,
|
||||
struct alc_spec *spec = codec->spec;
|
||||
if (action == HDA_FIXUP_ACT_PRE_PROBE) {
|
||||
spec->gen.hp_automute_hook = alc897_hp_automute_hook;
|
||||
spec->no_shutup_pins = 1;
|
||||
}
|
||||
if (action == HDA_FIXUP_ACT_PROBE) {
|
||||
snd_hda_set_pin_ctl_cache(codec, 0x1a, PIN_IN | AC_PINCTL_VREF_100);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user