ALSA: hda/realtek: headphone and mic don't work on an Acer laptop
stable inclusion from stable-v5.10.44 commit 6a81e47788fffcf046db4f3328e74cbe6dc8fbb5 bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=411 CVE: NA ------------------------------------------------- commit 57c9e21a upstream. There are 2 issues on this machine, the 1st one is mic's plug/unplug can't be detected, that is because the mic is set to manual detecting mode, need to apply ALC255_FIXUP_XIAOMI_HEADSET_MIC to set it to auto detecting mode. The other one is headphone's plug/unplug can't be detected by pulseaudio, that is because the pulseaudio will use ucm2/sof-hda-dsp on this machine, and the ucm2 only handle 'Headphone Jack', but on this machine the headphone's pincfg sets the location to Front, then the alsa mixer name is "Front Headphone Jack" instead of "Headphone Jack", so override the pincfg to change location to Left. BugLink: http://bugs.launchpad.net/bugs/1930188 Cc: <stable@vger.kernel.org> Signed-off-by: NHui Wang <hui.wang@canonical.com> Link: https://lore.kernel.org/r/20210608024600.6198-1-hui.wang@canonical.comSigned-off-by: NTakashi Iwai <tiwai@suse.de> Signed-off-by: Nzx <zx635029155@163.com> Reviewed-by: Jian Cheng <cj.chengjian(a)huawei.com>
Showing
想要评论请 注册 或 登录