mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 22:26:41 +07:00
ALSA: hda - Update automute / automic upon jack retasking
When a multi-io jack is switched to another direction, call the automute and autoswitch update functions, as this jack won't be used as the headphone or the mic jack that may turn off others. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
fd1082159d
commit
a365fed980
@ -1767,6 +1767,12 @@ static int set_multi_io(struct hda_codec *codec, int idx, bool output)
|
||||
snd_hda_activate_path(codec, path, false, true);
|
||||
set_pin_target(codec, nid, spec->multi_io[idx].ctl_in, true);
|
||||
}
|
||||
|
||||
/* update jack retasking in case it modifies any of them */
|
||||
snd_hda_gen_hp_automute(codec, NULL);
|
||||
snd_hda_gen_line_automute(codec, NULL);
|
||||
snd_hda_gen_mic_autoswitch(codec, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user