]> Git Repo - linux.git/commitdiff
ALSA: hda/realtek - ALC236 headset MIC recording issue
authorKailang Yang <[email protected]>
Tue, 5 Oct 2021 06:35:14 +0000 (14:35 +0800)
committerTakashi Iwai <[email protected]>
Tue, 5 Oct 2021 07:01:32 +0000 (09:01 +0200)
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 <[email protected]>
Tested-by: Kai-Heng Feng <[email protected]>
Cc: <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/hda/patch_realtek.c

index 0331fae5525e257583ca867e04da460daea660d4..0689f43fc7af7ddc8385f98a1b7632f96a8d21bb 100644 (file)
@@ -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:
@@ -3529,7 +3531,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)
This page took 0.112054 seconds and 4 git commands to generate.