]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda/realtek - The Mic on a RedmiBook doesn't work
authorHui Wang <hui.wang@canonical.com>
Wed, 9 Sep 2020 02:00:41 +0000 (10:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 11:00:00 +0000 (13:00 +0200)
commitb15c404057501a8d1818bc46cc4b7bd31bbe818e
tree7faea8d20343a49176bb2256ea9af6c60e43a9e6
parente908c59ae0a77e4f1de470622c1b6d6cc5be63f0
ALSA: hda/realtek - The Mic on a RedmiBook doesn't work

commit fc19d559b0d31b5b831fd468b10d7dadafc0d0ec upstream.

The Mic connects to the Nid 0x19, but the configuration of Nid 0x19
is not defined to Mic, and also need to set the coeff to enable the
auto detection on the Nid 0x19. After this change, the Mic plugging
in or plugging out could be detected and could record the sound from
the Mic.

And the coeff value is suggested by Kailang of Realtek.

Cc: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Link: https://lore.kernel.org/r/20200909020041.8967-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_realtek.c