From patchwork Wed Feb 14 18:45:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Gagniuc X-Patchwork-Id: 201094 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1426181dyb; Wed, 14 Feb 2024 10:50:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV0QQdpyFM2022mfWYQ/0HmNfnYcDID7N7TV1fkCaZkvHBCPdAOtMiLgX03DUj6UpmKQWw8Km7g3II5YekUsXNBPyIw1Q== X-Google-Smtp-Source: AGHT+IEQvzK+M0kPuJcou+RH6BFFP+q9xL3hLxf1JVljta4+RNMHsHY814g8ajUp+JzO1mJWjDFg X-Received: by 2002:a05:6a00:26dc:b0:6e0:51e3:909d with SMTP id p28-20020a056a0026dc00b006e051e3909dmr3052435pfw.17.1707936642648; Wed, 14 Feb 2024 10:50:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707936642; cv=pass; d=google.com; s=arc-20160816; b=fNTPlaOjUAGT6A+mgYLNIls56q3svn4g5UkkRNQWnkl/8nFtYmEYKLGLiBS73k3Yww gpETbHUd6jZOl2OaNp6hEGsMr6L79SM7D2K+6PpL+a5HYgU3hXR5iZJaG7xzks4ITPwT XFPBT79Ksaoig+8soEPJgL7yyiKs0DWrk3veCI8qlukFKTnRtE8K/MNAIiFW44dEpwtU UYtE2NpkmwkRfGDrd0T5xuu4f85nsn9S7GhQ1WykADqBuGK4Ky8VPW7nXROE767ZFUkk kxNLQ7YP5se+d5pn5fjGLrIx58r0Ifb9dlelNZXcYf5t1/hsiI6XpDtF9DI9JZxcmTDa +OUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=f+Ss+Vy5U6cHed6RvKSyVpq8OJxkSd2PHhtjh/PmpPk=; fh=GhYWiMPJ8K7PBtk/Lg12+aBWnSwdBtbJgjAACRgcJlU=; b=Sd9/DxVbcKOIrMDohHKDXo+mULfcJeXNTitXilyJudjdOTC7g3konwrwckB8uj0nuf q66594XDDBJxuHoPMFJVOgAnlBycQ9xdQebSLEPez3NTxHoNRWG6UBoveAnJWKncQyw3 pIC1lD6MdOdCcaeXFdbBNf4hVraMvi0rUA5r3JrBxqkAnWmyKwblBQtDGboXEJpOn9VT pQE8Gg1YSPWsljfoNjRiqE8URun3CBx0Pht4h2GIBMgSM+saqflwwrEaaMPmhkaf3z1w 2EtFpzJXOdqP8keQNm1YgP0YqZ/x1NKXwKCpNyRhxit1fMcpvz3Mu+ZUdV0uupkJAC0K DGGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=HazIUWUD; arc=pass (i=1 spf=pass spfdomain=hp.com dkim=pass dkdomain=hp.com dmarc=pass fromdomain=hp.com); spf=pass (google.com: domain of linux-kernel+bounces-65829-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65829-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=hp.com X-Forwarded-Encrypted: i=2; AJvYcCXmc8NdxF30jJcnrZYrqdDcDVPdttDxb/dDFEqMGxsWcOZXfyj2kGY3qXoQHOY+/iKFrlSPkdp5Pm6By/3+nG1Pm8VSRQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z21-20020a656655000000b005dc81a30772si3670542pgv.301.2024.02.14.10.50.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 10:50:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65829-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=HazIUWUD; arc=pass (i=1 spf=pass spfdomain=hp.com dkim=pass dkdomain=hp.com dmarc=pass fromdomain=hp.com); spf=pass (google.com: domain of linux-kernel+bounces-65829-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65829-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=hp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E788F2847E6 for ; Wed, 14 Feb 2024 18:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7246B13A88D; Wed, 14 Feb 2024 18:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hp.com header.i=@hp.com header.b="HazIUWUD" Received: from us-smtp-delivery-162.mimecast.com (us-smtp-delivery-162.mimecast.com [170.10.133.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD6F112F594 for ; Wed, 14 Feb 2024 18:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.162 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707936341; cv=none; b=riyPZLyRDF4gebxl1XdLfvzqlo2E5EkFqnstFsh8p7NP5JYsWiXH07QRzQ9CFwHtSCuGdzvy0BySV0+R0PSRS9Cu+bZFy3cO5R1KNzF3p6FACMdSA50GdxeJH0jOB1wB+qDPF9lb5KrK+xniKm6PV/IQy0OjRuWzNlKPj6OVjGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707936341; c=relaxed/simple; bh=f+Ss+Vy5U6cHed6RvKSyVpq8OJxkSd2PHhtjh/PmpPk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=qwglcsYTml4JRYmzcL5V+plsiNdLCVXa5V14u/1w18rjfVgfmp+egREZKKZGGFTU1TsQgo0ElQhOIqBJDQabFW/ZKroKwOco/PAjnE1uG7OgZVfRvV8HGeUopUJ1J6W35A7JWPGTm2/4LGEV6OIJWNt0xaoJuDPNR7Zcl3QfXcw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hp.com; spf=pass smtp.mailfrom=hp.com; dkim=pass (1024-bit key) header.d=hp.com header.i=@hp.com header.b=HazIUWUD; arc=none smtp.client-ip=170.10.133.162 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hp.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hp.com; s=mimecast20180716; t=1707936338; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f+Ss+Vy5U6cHed6RvKSyVpq8OJxkSd2PHhtjh/PmpPk=; b=HazIUWUDqyGqt7E6KTC3CzbsbOCKwRnpLQ21TJSChwD4yhtnmHI/oqjgrzeu9UxfH062nQ mS+HTgQjmiH9Yl3HFXi43tTVnLdAvRA1bUqLkcKJtUIg8d1WtUHaXxLDSJ8JuLHkyIIzXz 4LKJStQwBmGJW53POAUOMsu3GV8r9T4= Received: from g8t01559s.inc.hp.com (g8t01559s.inc.hp.com [15.72.64.153]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-556-qdKEUu9zPUieSwWbA3Rg_w-1; Wed, 14 Feb 2024 13:45:37 -0500 X-MC-Unique: qdKEUu9zPUieSwWbA3Rg_w-1 Received: from g7t14407g.inc.hpicorp.net (g7t14407g.inc.hpicorp.net [15.63.19.131]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by g8t01559s.inc.hp.com (Postfix) with ESMTPS id E75CF2056B; Wed, 14 Feb 2024 18:45:35 +0000 (UTC) Received: from localhost.localdomain (unknown [15.53.255.151]) by g7t14407g.inc.hpicorp.net (Postfix) with ESMTP id A5C7917; Wed, 14 Feb 2024 18:45:33 +0000 (UTC) From: Alexandru Gagniuc To: linux-sound@vger.kernel.org, perex@perex.cz, tiwai@suse.com Cc: linux-kernel@vger.kernel.org, eniac-xw.zhang@hp.com, Eniac Zhang , Alexandru Gagniuc , Alexandru Gagniuc , stable@vger.kernel.org Subject: [PATCH] ALSA: hda/realtek: fix mute/micmute LED For HP mt645 Date: Wed, 14 Feb 2024 18:45:07 +0000 Message-Id: <20240214184507.777349-1-alexandru.gagniuc@hp.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: hp.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790901373421408383 X-GMAIL-MSGID: 1790901373421408383 From: Eniac Zhang The HP mt645 G7 Thin Client uses an ALC236 codec and needs the ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF quirk to make the mute and micmute LEDs work. There are two variants of the USB-C PD chip on this device. Each uses a different BIOS and board ID, hence the two entries. Signed-off-by: Alexandru Gagniuc Signed-off-by: Alexandru Gagniuc Cc: --- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 6994c4c5073c..c837470ef5b8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9928,6 +9928,7 @@ 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, 0x8b0f, "HP Elite mt645 G7 Mobile Thin Client U81", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), SND_PCI_QUIRK(0x103c, 0x8b2f, "HP 255 15.6 inch G10 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2), 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), @@ -9935,6 +9936,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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, 0x8b59, "HP Elite mt645 G7 Mobile Thin Client U89", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), 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, 0x8b63, "HP Elite Dragonfly 13.5 inch G4", ALC245_FIXUP_CS35L41_SPI_4_HP_GPIO_LED),