android_kernel_xiaomi_sm8350/sound
Hui Wang 2e41b9c846 ALSA: hda/realtek: Fix the mic type detection issue for ASUS G551JW
commit a3fd1a986e499a06ac5ef95c3a39aa4611e7444c upstream.

We need to define the codec pin 0x1b to be the mic, but somehow
the mic doesn't support hot plugging detection, and Windows also has
this issue, so we set it to phantom headset-mic.

Also the determine_headset_type() often returns the omtp type by a
mistake when we plug a ctia headset, this makes the mic can't record
sound at all. Because most of the headset are ctia type nowadays and
some machines have the fixed ctia type audio jack, it is possible this
machine has the fixed ctia jack too. Here we set this mic jack to
fixed ctia type, this could avoid the mic type detection mistake and
make the ctia headset work stable.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214537
Reported-and-tested-by: msd <msd.mmq@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20211012114748.5238-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-20 11:40:12 +02:00
..
ac97 ALSA: ac97: fix PM reference leak in ac97_bus_remove() 2021-07-20 16:10:42 +02:00
aoa
arm
atmel
core ALSA: seq: Fix a potential UAF by wrong private_free call order 2021-10-20 11:40:12 +02:00
drivers ALSA: aloop: Fix initialization of controls 2021-04-14 08:24:09 +02:00
firewire ALSA: bebob: add support for ToneWeal FW66 2021-07-20 16:10:45 +02:00
hda ALSA: hda: ignore invalid NHLT table 2021-03-30 14:35:20 +02:00
i2c
isa ALSA: sb: Fix potential ABBA deadlock in CSP driver 2021-07-28 13:30:59 +02:00
mips
oss
parisc
pci ALSA: hda/realtek: Fix the mic type detection issue for ASUS G551JW 2021-10-20 11:40:12 +02:00
pcmcia
ppc ALSA: ppc: fix error return code in snd_pmac_probe() 2021-07-20 16:10:44 +02:00
sh
soc ASoC: rockchip: i2s: Fixup config for DAIFMT_DSP_A/B 2021-09-22 12:26:35 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Add quirk for VF0770 2021-10-20 11:40:12 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c