From patchwork Tue Feb 14 03:58:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Chi X-Patchwork-Id: 13139349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4132C61DA4 for ; Tue, 14 Feb 2023 04:00:35 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B8135828; Tue, 14 Feb 2023 04:59:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B8135828 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1676347232; bh=eWbcB+iX4LCnyc6pRYigXgULXC+e2Xl50BbSE5+YwDc=; h=From:To:Subject:Date:CC:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=m45+uIVqRrM38+2eWAtzkmcLz277bJd5LKyCakLLZSTn8TfTVNhR5wO1biw8C2xc+ XBCplb9fUjij8y19SBbSxcf2qQo8chQ86eJHbsFK6UJbeR9e+Il30yEcSqSB5XYlZA RMzL0KKdxlY7RzsmMxDS6nLbgPTN0RJ5uGLeH3cA= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 119D6F801C0; Tue, 14 Feb 2023 04:59:18 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1665CF8047C; Tue, 14 Feb 2023 04:59:12 +0100 (CET) Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 69F2EF8001E for ; Tue, 14 Feb 2023 04:59:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 69F2EF8001E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=d5EIozJQ Received: from andch-XPS-15-9520.. (118-163-61-247.hinet-ip.hinet.net [118.163.61.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id 06ACA41FD7; Tue, 14 Feb 2023 03:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1676347141; bh=xJrwXvOvxe8komFXsQJneyvX69+3l58+HMj2dD2umuw=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=d5EIozJQTXvA3DTiIYR3JsW3zSDnxwHVfqQ2sDWIV2XH95YCcLd1djIQpHa04DSQj 1AD9PSmKh3FV7ljziuzXYwAFVWUX/06S396uNSG/HfMny+RySpN80dvs+N5GxXZNdY dFZdXFZY7snBHDNyzZhDyd0EgOoUgDIrYq0HcfDWojYhtBGIZ/DtJ6tVESFWE0qIc/ 88a8Dafl6LsaqFJhWLkI6jYHDngH6J8LejPfA1ht0M5BRukF0AwdaKLUuCw7ahpng9 heShRNCjIXBUlpvvSDt9s5bSW2ASBRKA8lALyvgGFF6FKcYHnqnUopTUYQ6TU6u38h tMo4lX+1fQVfA== From: Andy Chi To: Subject: [PATCH 1/2] ALSA: hda/realtek: fix mute/micmute LEDs don't work for a HP platform. Date: Tue, 14 Feb 2023 11:58:51 +0800 Message-Id: <20230214035853.31217-1-andy.chi@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: 2RDWQ5UG7GPFTGCD5RFAXWMM6LFQDPHQ X-Message-ID-Hash: 2RDWQ5UG7GPFTGCD5RFAXWMM6LFQDPHQ X-MailFrom: andy.chi@canonical.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: andy.chi@canonical.com, Takashi Iwai , Tim Crawford , Stefan Binding , Meng Tang , Philipp Jungkamp , =?utf-8?q?Kacper_Michaj=C5=82ow?= , Gabriele Mazzotta , Yuchi Yang , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: There is a HP platform needs ALC236_FIXUP_HP_GPIO_LED quirk to make mic-mute/audio-mute working. Signed-off-by: Andy Chi --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 1134a493d225..7b9fb38ff732 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9436,6 +9436,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x8b5e, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), SND_PCI_QUIRK(0x103c, 0x8b7a, "HP", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8b7d, "HP", ALC236_FIXUP_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b87, "HP", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8b8a, "HP", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8b8b, "HP", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8b8d, "HP", ALC236_FIXUP_HP_GPIO_LED), From patchwork Tue Feb 14 03:58:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Chi X-Patchwork-Id: 13139350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 73C6FC61DA4 for ; Tue, 14 Feb 2023 04:01:02 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 44CE483E; Tue, 14 Feb 2023 05:00:10 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 44CE483E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1676347260; bh=s2LnC8rSU0r0K2fUuznMBNrx/uwueJuAQwCqIzUr3f4=; h=From:To:Subject:Date:In-Reply-To:References:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JTeUxxgnpphOuR6Gf0YIKTU/TyoeB4p3K6fmqx9wJySgkftP7MMD21VelMym4Plkd 6y3RcbvLX0qgg/1CC/4EVunRDw6bgwydg4KdMCdCk0coezTGzypw9ORfCAvYi+Y8df 1GPxpE+t6wkg7jsiVQJtokdj4skvbtn08BchbLxo= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 72E02F804B2; Tue, 14 Feb 2023 04:59:20 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7C0B5F801C0; Tue, 14 Feb 2023 04:59:13 +0100 (CET) Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8D67BF800B6 for ; Tue, 14 Feb 2023 04:59:07 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8D67BF800B6 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=MKi4o3RC Received: from andch-XPS-15-9520.. (118-163-61-247.hinet-ip.hinet.net [118.163.61.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id C91F041FDA; Tue, 14 Feb 2023 03:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1676347146; bh=1XieuJDvVh/qHz7SDSlKiMy2zNt+9X4WxUsZwQNf5Tk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MKi4o3RCFf/qbEKWM4BjbXApAlzeeiTS8Y2PWgth7CT9TfOY5Zs48rE+FDDF6MwLl 9j4yMEQmgDSJ9XVfq0Uy61aHHjUaZI0HnkuZIeBbVUb87TmIZ5y1aLYPheWiu5vJmf axp+ykMldCvi1VBXOa6impjvAuUOnLlZuFYsueuJ8BQsPk67u/QzNEO513JoQHVGxp dT8gbt7vg0UwaFUgTbZIHz9NDY1XPi/tvqVimfd5PEojOcvNC5bd3zJWZUKs9+BIul 2yvnmGea6lklGHOSIL1DyKKRFSL39NdVhifCF8vd4MlnZSo5EUg811Ln9dHFD/3ZuB EjI5K5WFoHkzQ== From: Andy Chi To: Subject: [PATCH 2/2] ALSA: hda/realtek: Enable mute/micmute LEDs support for HP Laptops Date: Tue, 14 Feb 2023 11:58:52 +0800 Message-Id: <20230214035853.31217-2-andy.chi@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230214035853.31217-1-andy.chi@canonical.com> References: <20230214035853.31217-1-andy.chi@canonical.com> MIME-Version: 1.0 Message-ID-Hash: JRE4NTQM2JJE7CPYTTILS2RBFQUXPQXY X-Message-ID-Hash: JRE4NTQM2JJE7CPYTTILS2RBFQUXPQXY X-MailFrom: andy.chi@canonical.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: andy.chi@canonical.com, Takashi Iwai , Tim Crawford , Stefan Binding , Meng Tang , Philipp Jungkamp , =?utf-8?q?Kacper_Michaj=C5=82ow?= , Gabriele Mazzotta , Yuchi Yang , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On HP Laptops, requires the same ALC285_FIXUP_HP_GPIO_LED quirk to make its audio LEDs work. Signed-off-by: Andy Chi --- sound/pci/hda/patch_realtek.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 7b9fb38ff732..e2cd5456f2a6 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9432,6 +9432,12 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x8abb, "HP ZBook Firefly 14 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8ad1, "HP EliteBook 840 14 inch G9 Notebook PC", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8ad2, "HP EliteBook 860 16 inch G9 Notebook PC", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b42, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b43, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b44, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b45, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b46, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8b47, "HP", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8b5d, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), SND_PCI_QUIRK(0x103c, 0x8b5e, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), SND_PCI_QUIRK(0x103c, 0x8b7a, "HP", ALC236_FIXUP_HP_GPIO_LED),