Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3018391pxb; Mon, 18 Oct 2021 06:42:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNvAE+YGJdm/a33C0kRpFRygAYXKGS1Jeo6kpLh1RiW0BrdMcGg2HqQ10B7tpjpH+CeadB X-Received: by 2002:a63:724b:: with SMTP id c11mr2836187pgn.59.1634564565262; Mon, 18 Oct 2021 06:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564565; cv=none; d=google.com; s=arc-20160816; b=Mtc7qEaKabAKJ7xl8Bx9TIK8yAJD1aFLv8c7jreChQNx84kaoH9NSlJUkWYxcJ1UIx 2h5rOurKBJ29RH1zTqIaxEwbkas7yhCVRdBfRNY2qYjGx1+gsdid/Iuxfv5VXCj/89vZ e0ds9fsWnek+40zYw6ZnpSdTMl/M2gE4POkM67GcKErG+wP0uJEI/26I/SF3pr3c2+oB utZ3/hUmnw2TksuqwVUX7X+zcv+leRseIjvpmzfpcvq0MfzWH1O/X1zZOX0H4YrH640A kwKrgtucF13JvhvF0Pe7dLHQ6TYkVOiT2zU6jNZuJLkKzPXoY2xDqi4tDP8hwCybqt+9 Rytw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=68gao+WXLT5hTJ34udRVXTLSS311Ye7WsBNasgF+L/Y=; b=T3SpjsqnfvwR8Bo9tpho7CmiJ3Q4VH3/ajO+4TEy2yOeDmDSWLON9MQQNH0Bs+7ABa Fk3YJUnGWjoScMjz9aGuseUq6anJ5WrHLcpJLZQy/er4i6WizlPpWRNOf+Nrs01qgiB2 mE5R8TXbyuyQ8h2gJjO1BP3/U3Qz0lMPbPwkHT4UZhumT4rYyXl8v769fnzUPl4f27zS 4skplPlFryPepC/2WGpwzh7LFC9Fp/lipS2oOFKvkvM6SbGj3DqaBJt8ymYllxu0K2te VQplKUMa2w974O034hot7G6JhOqYTCQpbGBKanAh5RbisJ19x0e1nDfr2dKwQNgiAhIW EZsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VqXwqiWg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w9si23249318pfu.292.2021.10.18.06.42.32; Mon, 18 Oct 2021 06:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VqXwqiWg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbhJRNmh (ORCPT + 99 others); Mon, 18 Oct 2021 09:42:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:54084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233416AbhJRNkf (ORCPT ); Mon, 18 Oct 2021 09:40:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C3A90613A2; Mon, 18 Oct 2021 13:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563996; bh=n0RHwl3MWWG0TpDMSPDYhcPCIQAcvisO2609pvhR0Yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VqXwqiWgMJTuF9mrNyXyetHh5b1yFHwP3iOXXCxy2/w8sEt1F0enZS1U5qdG5Z0Ng FtKpRe9Jmxsq4xjWk+0JME1nG7ZCo/OKTnf06DNifPNSSEbjCucJVYA8UpIFRLm1VO aa79AVGafgge1PeT32vk9tQWhFCkw+Su215A7F3s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Kai-Heng Feng , Takashi Iwai Subject: [PATCH 5.10 008/103] ALSA: hda/realtek - ALC236 headset MIC recording issue Date: Mon, 18 Oct 2021 15:23:44 +0200 Message-Id: <20211018132334.976354137@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132334.702559133@linuxfoundation.org> References: <20211018132334.702559133@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kailang Yang commit 5aec98913095ed3b4424ed6c5fdeb6964e9734da upstream. 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 Tested-by: Kai-Heng Feng Cc: Link: https://lore.kernel.org/r/ccb0cdd5bbd7486eabbd8d987d384cb0@realtek.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -527,6 +527,8 @@ static void alc_shutup_pins(struct hda_c struct alc_spec *spec = codec->spec; switch (codec->core.vendor_id) { + case 0x10ec0236: + case 0x10ec0256: case 0x10ec0283: case 0x10ec0286: case 0x10ec0288: @@ -3532,7 +3534,8 @@ static void alc256_shutup(struct hda_cod /* 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)