[Unstable/OEM-5.13/OEM-5.14] [PATCH 1/1] ALSA: hda/realtek - ALC236 headset MIC recording issue
Kai-Heng Feng
kai.heng.feng at canonical.com
Thu Oct 7 16:53:23 UTC 2021
From: Kailang Yang <kailang at realtek.com>
BugLink: https://bugs.launchpad.net/bugs/1946383
In power save mode, the recording voice from headset mic will 2s more delay.
Add this patch will solve this issue.
[ minor coding style fix by tiwai ]
Signed-off-by: Kailang Yang <kailang at realtek.com>
Tested-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
Cc: <stable at vger.kernel.org>
Link: https://lore.kernel.org/r/ccb0cdd5bbd7486eabbd8d987d384cb0@realtek.com
Signed-off-by: Takashi Iwai <tiwai at suse.de>
(cherry picked from commit 5aec98913095ed3b4424ed6c5fdeb6964e9734da linux-next)
Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
---
sound/pci/hda/patch_realtek.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 4407f7da57c40..18277602d4fca 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -526,6 +526,8 @@ static void alc_shutup_pins(struct hda_codec *codec)
struct alc_spec *spec = codec->spec;
switch (codec->core.vendor_id) {
+ case 0x10ec0236:
+ case 0x10ec0256:
case 0x10ec0283:
case 0x10ec0286:
case 0x10ec0288:
@@ -3528,7 +3530,8 @@ static void alc256_shutup(struct hda_codec *codec)
/* If disable 3k pulldown control for alc257, the Mic detection will not work correctly
* when booting with headset plugged. So skip setting it for the codec alc257
*/
- if (codec->core.vendor_id != 0x10ec0257)
+ if (spec->codec_variant != ALC269_TYPE_ALC257 &&
+ spec->codec_variant != ALC269_TYPE_ALC256)
alc_update_coef_idx(codec, 0x46, 0, 3 << 12);
if (!spec->no_shutup_pins)
--
2.32.0
More information about the kernel-team
mailing list