]> git.baikalelectronics.ru Git - kernel.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)
commit187742ecca29d47d47b37f2e7d13a2438dd98a62
tree781e279c79850477df204d67e7847960ce23c105
parentfb0a520de57dd61c6b14ff462d76de25af15888b
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