From patchwork Mon Mar 4 13:40:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Chi X-Patchwork-Id: 209544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:fa17:b0:10a:f01:a869 with SMTP id ju23csp1426857dyc; Mon, 4 Mar 2024 05:42:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXAlDqEap/RExIG4Ry3URkdy/1MKBQ/V814VZZBGk0pbeBtywryiycRfLKAxJRGA46BrxJ6wVAVUmRLK9Hg7kicuDf9fQ== X-Google-Smtp-Source: AGHT+IGWAvfNgzbf9v3O/RvZgynjq3k5SaNHHU+OXruwIsXg+FL8f72KfRaol+rH5BBbRZQ6FQqY X-Received: by 2002:a50:cdd0:0:b0:566:3f3e:3a23 with SMTP id h16-20020a50cdd0000000b005663f3e3a23mr5982778edj.1.1709559772554; Mon, 04 Mar 2024 05:42:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709559772; cv=pass; d=google.com; s=arc-20160816; b=I2sNhWuMLb0/6rIHqXKMyHAnlVHo6QGBlAoHwJxu66a9/sERkDg+qoykEc5Vd1j75x 9FFkmlwsU/blxz95fd6hiRl9Z7sMqZsZ43lj58Z/Zp5w/DJPTUYj7C7VILJh99Zd+Q7E Pg9LD9XBZVlw9VZiM/XKvpxLTwmhQr5j4lmuBPgpXiYt1d+UeVC6yjVU9goSxz6Ytjqs ntJ8Aso5ecZGUgRBFFl274WaSTxe+Y3Lzawv8mltm/881x6One/ytGMhe3S6NBhmediI 0Bq5JkWABbzTXfsE4xgAlEupmuzd91vYM6lQ0kcSvcb9k4Df7ION6AKReG6sPJqVhc1W X4qg== 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=tVLPpKCRmOM3oFaDePTJQsjQEmkz+D3QGfPGx8yx7lU=; fh=kGbUD+rmXgWAfTRSi/LrP5yU1yWcNHb4vm7VG0uxKzY=; b=XJiAd5f/y1lUTWpBHqrKbD2KSgOMzSRfNX1l3txUqg+JdpHbqdME7AmjDdgDvfIMLD FLyo7ftyFlfYtS8UV9vzfiWWGHqqs7c5URs9nqwqvOBKYcFSuGl36zuREWVU0d7VMGM5 K9LHu3A5rZb/JBBnz2eDF24BrpwPusCe2nToJ4iOxWDaVOZtuw+yXpkRZ24p0jauSzAH DsP34tJ/VpsPK1Pbh9HOQR7O5brrsGf/Sp/i7YfmJz2Ciiw6R1mm/1xwZzT9eMAjnMtU Xevaog5ldoXGaiKmLk0fBfsTigAEABHeFrsRD+8vsHjE3vT6WuPTjp+rtuJu9/FApuaw cQUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=XqJjbyhz; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-90670-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90670-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v11-20020a50d58b000000b005673d96f153si1104674edi.659.2024.03.04.05.42.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:42:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90670-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=XqJjbyhz; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-90670-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90670-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6F78A1F2661A for ; Mon, 4 Mar 2024 13:41:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0491C3F9F9; Mon, 4 Mar 2024 13:40:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="XqJjbyhz" Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) (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 493771EB2C; Mon, 4 Mar 2024 13:40:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.121 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559653; cv=none; b=MEV7sbW6Q4kpqtT9fE9Eay2gOkBnEdpqduT2TNzA3oI3d86TkieZIdA+YMTSGUcZp6IcZ/TVOpQC95spOwsRDVEoAW/H0NbkKSeySsnK+GYiOlQ8wPOolDSzfVo7ZLGZNFAVjNd/z0yYuD4BWSePithEO5fbnsZs6qyPxm0r7to= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559653; c=relaxed/simple; bh=HEWHA2PR2Vwm0nx5ZwKKi8D+dn4R9GYVVAfVOpirOdg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ewod9qB84v8b3OasMIwsWRflM2lZ3EEi0PelDmZMK9j99qtH+TvINHD7T7WUh+wYt0JG40CeA1hlNHn4I8z/TSDEwNBx5/bV0AfIpksbftMcDKSJXEnauc7FPka1TKkiiABb/HaUiM0eiiFhAEH/gMHoJsZJd3zzehwTUFT+at0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=XqJjbyhz; arc=none smtp.client-ip=185.125.188.121 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from andch-XPS-15-9520.. (1-163-114-48.dynamic-ip.hinet.net [1.163.114.48]) (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 49D333FDED; Mon, 4 Mar 2024 13:40:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1709559648; bh=tVLPpKCRmOM3oFaDePTJQsjQEmkz+D3QGfPGx8yx7lU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XqJjbyhzobDu/SqCj/j1eAUeLfhRTceHvctRjIfQcSvG3Nf9qohi5SKZuexOaPHD3 4ORyFrXG+R4Z5nxPjO/ksKsovwt2KHKnmO+F2Bq7EQoIcdtDYsMumcILt3UkBg54jy NMsYdzdyGZoLo5svgOSuRNQKlxgn6xcEMw0J5iBLrI8YNguWkR+c1rUVvNCTnlnLY7 qysjWzO/AO0r3+tyk/jHClwvLCQV4FPwDRY9jmTmKGt/+YaIvJGJknVeXVCCaQoCGz XRXbjserrYrJSUDoBxKWEmZSeEfM4fAMdMqgrBdF0oihEo3L3vgeQMsgUSeMbs9HsT 9GgLTSZhBTuTw== From: Andy Chi To: Cc: andy.chi@canonical.com, Jaroslav Kysela , Takashi Iwai , Stefan Binding , Kailang Yang , "Luke D. Jones" , Shenghao Ding , Matthew Anderson , Richard Fitzgerald , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook Date: Mon, 4 Mar 2024 21:40:32 +0800 Message-Id: <20240304134033.773348-1-andy.chi@canonical.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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792603347673324248 X-GMAIL-MSGID: 1792603347673324248 The HP EliteBook using ALC236 codec which using 0x02 to control mute LED and 0x01 to control micmute LED. Therefore, add a quirk to make it works. Signed-off-by: Andy Chi --- sound/pci/hda/patch_realtek.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index d71520858b5f..232f759e169f 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9880,6 +9880,10 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x8c70, "HP EliteBook 835 G11", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8c71, "HP EliteBook 845 G11", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8c72, "HP EliteBook 865 G11", ALC287_FIXUP_CS35L41_I2C_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8c8a, "HP EliteBook 630", ALC236_FIXUP_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8c8c, "HP EliteBook 660", ALC236_FIXUP_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8c90, "HP EliteBook 640", ALC236_FIXUP_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x8c91, "HP EliteBook 660", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8c96, "HP", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), SND_PCI_QUIRK(0x103c, 0x8c97, "HP ZBook", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF), SND_PCI_QUIRK(0x103c, 0x8ca1, "HP ZBook Power", ALC236_FIXUP_HP_GPIO_LED),