Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2896124pxb; Tue, 24 Aug 2021 10:05:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiFZ2eDfJsX0wuD/dq7XrW2V7KLhAGBCG2TXEf4Q3TsD2aU+jvkP1QGyYwpCkvpOKvb1C4 X-Received: by 2002:a05:6602:27ca:: with SMTP id l10mr33347342ios.16.1629824717797; Tue, 24 Aug 2021 10:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824717; cv=none; d=google.com; s=arc-20160816; b=nzFdztlIdMkVLpJMA9ZzjsLNVjU/+M2/jfgp1YW86bDxfaOnb/s9I8hzvbKxzSPOh+ qaA4qb69BYY8ALIb5fHFVEJaqbKjwJ7jUHIqtzF+baF5decCN5qGO8IpohyUvqZCXNFb 8Z5Al9/3Qe9bpUi4I2jnLU6fDXhRlFHMbJojS8NkAG2FZZs0xumIjy2Rbx6zpZfjFfih t2Kxu20i5RRJ5W++ugh1aMEPuCn5JG2akPrGwUq5e1+lSwKnUo5H37KGrJGyfW6K0Xiy 2LRCQCk3Gqt4mFpUxSc5ThKTX3l0g8uuDb4GtgOuJkjxBiOSmCJT4avE7E2Fw20puWGU kG+Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2gO7JJw3CSda1GuhfWRRh/QUgTyuG8IT3rY03F10/NE=; b=SzA9e8/OZgTJOCh5gEERkadCe1XIK3nN1d+/aHyeJjbmghI+TUykLjIuOC6QfD/7qa i/XQfPCbcXsjhLGHTf7BWFxy65rOFjHbXbb543JxGnRsjpb53HWbV9/s11UCsa3WIzW6 NyvRwebLoH2CluSFtCAQrCXMq6dFtJ7doKUfhkPfjwQ0mkBy6gY1h2E1brxCwSHaTMhK ZExktjJZtavSZdC8jO2ab3K/xbdq+EOM6hy4RkP8n9XGFclxwl/gHLtoZpmI3doV3I2p xRs44LOeBXulv3BbrOqP9oTL+uNJcjR3SQ+gUJvO6E/kTPg4rmM14w9MLocgdcwcsO/y xRsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ISW0PPPe; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si21860188iov.104.2021.08.24.10.05.04; Tue, 24 Aug 2021 10:05:17 -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=@kernel.org header.s=k20201202 header.b=ISW0PPPe; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239544AbhHXREW (ORCPT + 99 others); Tue, 24 Aug 2021 13:04:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:39584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238981AbhHXRBe (ORCPT ); Tue, 24 Aug 2021 13:01:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D73B6617E3; Tue, 24 Aug 2021 16:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824282; bh=QS6ccdFmXBTWSgEYQ2ssQGURB4Bkmcloks3jpuqLKD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ISW0PPPepNXOjSvd3ADo2q8RtKiU0o862tl+jOOsrB7s/14CdADhaJLk/5nRxvODY 9wvUqk+eQp66njB3FHaID4HLj1NbqG5IU7Ff1btMu0P/WJXcyJraHWk7eArgeZ0/hc 6VVp38XmVg/3eAo8G0Gn/WOdlgeIJYmMgIG5rwXZtr5h83ZxcvZNe6yRclIPbJWX3T I5i6f0XB4EL2/mf9BpYODSFRNNDmhLr1D8XtdHXSkeAZcyv7+dOBL4hIFhNcFMj1x1 P29E2S+jRK6h7PPG7SMsnd7zZRXv6AsSnU5gRIZ2fAFog3x/DrrTd73F7PlkF63PkM QMNgUxbfFMxnw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kai-Heng Feng , Takashi Iwai , Sasha Levin Subject: [PATCH 5.13 117/127] ALSA: hda/realtek: Limit mic boost on HP ProBook 445 G8 Date: Tue, 24 Aug 2021 12:55:57 -0400 Message-Id: <20210824165607.709387-118-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai-Heng Feng [ Upstream commit 8903376dc69949199301b290cc22dc64ae5d8a6d ] The mic has lots of noises if mic boost is enabled. So disable mic boost to get crystal clear audio capture. Signed-off-by: Kai-Heng Feng Cc: Link: https://lore.kernel.org/r/20210818144119.121738-1-kai.heng.feng@canonical.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/pci/hda/patch_realtek.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 6ab53352fc9b..0c6be8509855 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6598,6 +6598,7 @@ enum { ALC287_FIXUP_IDEAPAD_BASS_SPK_AMP, ALC623_FIXUP_LENOVO_THINKSTATION_P340, ALC255_FIXUP_ACER_HEADPHONE_AND_MIC, + ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST, }; static const struct hda_fixup alc269_fixups[] = { @@ -8182,6 +8183,12 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC255_FIXUP_XIAOMI_HEADSET_MIC }, + [ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc269_fixup_limit_int_mic_boost, + .chained = true, + .chain_id = ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -8378,8 +8385,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x8847, "HP EliteBook x360 830 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x884b, "HP EliteBook 840 Aero G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x884c, "HP EliteBook 840 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED), - SND_PCI_QUIRK(0x103c, 0x8862, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), - SND_PCI_QUIRK(0x103c, 0x8863, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), + SND_PCI_QUIRK(0x103c, 0x8862, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST), + SND_PCI_QUIRK(0x103c, 0x8863, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x103c, 0x886d, "HP ZBook Fury 17.3 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT), SND_PCI_QUIRK(0x103c, 0x8870, "HP ZBook Fury 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT), SND_PCI_QUIRK(0x103c, 0x8873, "HP ZBook Studio 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT), -- 2.30.2