]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda/realtek: headphone and mic don't work on an Acer laptop
authorHui Wang <hui.wang@canonical.com>
Tue, 8 Jun 2021 02:46:00 +0000 (10:46 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Jun 2021 12:00:41 +0000 (14:00 +0200)
commit57c9e21a49b1c196cda28f54de9a5d556ac93f20
tree781e279c79850477df204d67e7847960ce23c105
parent9981b20a5e3694f4625ab5a1ddc98ce7503f6d12
ALSA: hda/realtek: headphone and mic don't work on an Acer laptop

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>
sound/pci/hda/patch_realtek.c