]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ALSA: hda/realtek: headphone and mic don't work on an Acer laptop
authorHui Wang <hui.wang@canonical.com>
Tue, 27 Jul 2021 06:18:25 +0000 (14:18 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:47:07 +0000 (09:47 +0200)
commit47902e4aec268638e554cadc1de10bdfe2f42965
tree5875139a3cfa5ac47bc70100506a69e2270ab6ba
parent6c4d91df70f1095404de0472ff9895dab110081e
ALSA: hda/realtek: headphone and mic don't work on an Acer laptop

BugLink: https://bugs.launchpad.net/bugs/1930188
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: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20210608024600.6198-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(backported from commit 57c9e21a49b1c196cda28f54de9a5d556ac93f20)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
sound/pci/hda/patch_realtek.c