ALSA: hda/realtek: Fix audio regression on Mi Notebook Pro 2020
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Wed, 30 Mar 2022 06:13:33 +0000 (14:13 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Mar 2022 08:17:35 +0000 (10:17 +0200)
commitf30741cded62f87bb4b1cc58bc627f076abcaba8
tree8489deb4cc17b82638becdc4be6064b388e19f3d
parent5e2baa04e4cd94c2465b248b7d861fcff8c22fae
ALSA: hda/realtek: Fix audio regression on Mi Notebook Pro 2020

Commit 5aec98913095 ("ALSA: hda/realtek - ALC236 headset MIC recording
issue") is to solve recording issue met on AL236, by matching codec
variant ALC269_TYPE_ALC257 and ALC269_TYPE_ALC256.

This match can be too broad and Mi Notebook Pro 2020 is broken by the
patch.

Instead, use codec ID to be narrow down the scope, in order to make
ALC256 unaffected.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215484
Fixes: 5aec98913095 ("ALSA: hda/realtek - ALC236 headset MIC recording issue")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20220330061335.1015533-1-kai.heng.feng@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c