]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ALSA: hda/realtek - Couldn't detect Mic if booting with headset plugged
authorHui Wang <hui.wang@canonical.com>
Mon, 14 Sep 2020 06:51:18 +0000 (14:51 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:48:03 +0000 (14:48 +0100)
commit4a6d6c01ebd7cee2a9705a4f2be0ce80e2b06a5f
tree32426a64ac765ad9d68280c472ed72c3d2308100
parent0d543d45404a8f88c3263a03414e23307ab896e5
ALSA: hda/realtek - Couldn't detect Mic if booting with headset plugged

BugLink: https://bugs.launchpad.net/bugs/1900624
commit 3f74249057827c5f6676c41c18f6be12ce1469ce upstream.

We found a Mic detection issue on many Lenovo laptops, those laptops
belong to differnt models and they have different audio design like
internal mic connects to the codec or PCH, they all have this problem,
the problem is if plugging a headset before powerup/reboot the
machine, after booting up, the headphone could be detected but Mic
couldn't. If we plug out and plug in the headset, both headphone and
Mic could be detected then.

Through debugging we found the codec on those laptops are same, it is
alc257, and if we don't disable the 3k pulldown in alc256_shutup(),
the issue will be fixed. So far there is no pop noise or power
consumption regression on those laptops after this change.

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/20200914065118.19238-1-hui.wang@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
sound/pci/hda/patch_realtek.c