Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3277516pxb; Tue, 20 Apr 2021 04:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvtpuqVwhaXcpNouk/geLVPUadsAkxmYO2MhcY+cUKekCHNZFA8xAgyFSmtqsetbnSWwhF X-Received: by 2002:a17:90a:cb85:: with SMTP id a5mr4729675pju.124.1618919862401; Tue, 20 Apr 2021 04:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618919862; cv=none; d=google.com; s=arc-20160816; b=exctZzl3u1icr+kkD0FQsRbuKji5sawzvJtO4Z1S/C18ueu+jbH5nBbHk0iqTNaW/I eQvWgvKr3t6GvtTYkueRLeH4yiazsoUPFJ608edn2es7ijw+3/kGmrotaelMGCAf8Yuf jmaGVTUQq0NgZwmfNcsCd1O7/3pJL59sU8/a8jklQGIpyju0PNq4cO7s/qoZ2Z4u2NGf RiJPtcSVksNjSfOJyHVTBHoxuVAOacl1Kk6pUmojtG/ePXNrBRRzkxpfhflWM1wlTW4s KxApIOSD/DEctRFhRnFiCcOODCijn+kYSK9pBki2wSH72RLuSGevlJaWBMuXlXTuUAfp 5shg== 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 :message-id:date:subject:cc:to:from; bh=43RcHb6ZyhrOWxPYkEfFIjYm4VbvTwnKdHmUqLj4o2E=; b=sJQLH9+572JCpDhFqWf4G71KXoJaJWJmZEuRZUaZboNSSfuiUqsPPWkvmQH/YKp0Bm hs4ywO4ZwlFfxW+/1tF6PVzMdY4JwTWKEPXoK3MwGtTSuNgJ8DJ5952XXSa6LbAGJM46 v5vtR8zog7zWTK/tcf6Y+1pFLlKOx1OQWtPzc7AwAgRlZOXtA2Ek9KW8kGNEa9Ix8UCp 7wTHLz+romPA8kzfNkK7JfgjOvlhLVoTHYVyCkgQzXwBWPcvrhR6qzzR/lSy3fKRj4ZK 7qUI9kRxUFMRcqOmJ1zD32FNKUckndcfZBQ0tFLGAgrdVjoDnG5DH4o71YYtWHNI04cQ icrQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me12si3009979pjb.143.2021.04.20.04.57.29; Tue, 20 Apr 2021 04:57:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231837AbhDTL4b (ORCPT + 99 others); Tue, 20 Apr 2021 07:56:31 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39623 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbhDTL4b (ORCPT ); Tue, 20 Apr 2021 07:56:31 -0400 Received: from 36-229-230-199.dynamic-ip.hinet.net ([36.229.230.199] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYoym-0006W3-Mh; Tue, 20 Apr 2021 11:55:45 +0000 From: Kai-Heng Feng To: tiwai@suse.com Cc: Kai-Heng Feng , Jaroslav Kysela , Kailang Yang , Jian-Hong Pan , Hui Wang , Huacai Chen , alsa-devel@alsa-project.org (moderated list:SOUND), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ALSA: hda/realtek: Enable mute/micmute LEDs and limit mic boost on EliteBook 845 G8 Date: Tue, 20 Apr 2021 19:55:29 +0800 Message-Id: <20210420115530.1349353-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On HP EliteBook 845 G8, the audio LEDs can be enabled by ALC285_FIXUP_HP_MUTE_LED. So use it accordingly. In addition to that, the mic captures lots of noises, so also limits the mic boost. The quality of capture audio becomes crystal clear after limiting the mic boost. Signed-off-by: Kai-Heng Feng --- sound/pci/hda/patch_realtek.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index a7544b77d3f7..c71f1f2b6a8c 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6427,6 +6427,7 @@ enum { ALC282_FIXUP_ACER_DISABLE_LINEOUT, ALC255_FIXUP_ACER_LIMIT_INT_MIC_BOOST, ALC256_FIXUP_ACER_HEADSET_MIC, + ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST, }; static const struct hda_fixup alc269_fixups[] = { @@ -7901,6 +7902,12 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC }, + [ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc269_fixup_limit_int_mic_boost, + .chained = true, + .chain_id = ALC285_FIXUP_HP_MUTE_LED, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -8079,6 +8086,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x87f7, "HP Spectre x360 14", ALC245_FIXUP_HP_X360_AMP), SND_PCI_QUIRK(0x103c, 0x8846, "HP EliteBook 850 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, 0x8898, "HP EliteBook 845 G8 Notebook PC", ALC285_FIXUP_HP_LIMIT_INT_MIC_BOOST), SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), -- 2.30.2