From patchwork Tue Feb 20 17:58:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Gagniuc X-Patchwork-Id: 203737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp577134dyc; Tue, 20 Feb 2024 10:08:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWA4mBye8koUH7LitdxeSpV0SNOJAS/PrReSHK9ydpKLqmUTbiCVRxiYekrz2mRKZZ8a4CFwkPienlVPyiMXtZMkhxiZg== X-Google-Smtp-Source: AGHT+IFkSCxa6ft1HvOAuCkMSydbe1lJdV8Nmold8s0Bf4i/B8S246Tqq5yxZKKOAd/hpeTpaceX X-Received: by 2002:a05:6359:411f:b0:17a:ed6c:3f10 with SMTP id kh31-20020a056359411f00b0017aed6c3f10mr16688185rwc.17.1708452505126; Tue, 20 Feb 2024 10:08:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708452505; cv=pass; d=google.com; s=arc-20160816; b=ctFsYXSzhXTXaJlnwAQ2CyUlFf8/lCrPVvWnpO9K2RmpC5heJD8MV/+2OOQeF+TCLb 9PwHSzwntrqBe7Bdpj4+Kp8YtfcFzlj/on1xZ8+3ipCmctWrqu2eX8HEGlk3N3jqg91Y qbWNWLXvHyNeXuaaEUn3eX/+w96nmaKwWj90q+i8UP07us5m3MS05CVXbKTqG4khegqy KG7Gh8hpA5nlzJNM9o2rqDBy0x2EaYBrOTnP4N88hYdVy3YLVAugHZJ+7RK1WwtXnxuf VKE+m5V4UaRO99J2dNCuDa64G9wrCIO/YBAZ0+GYW0AH+UD1FHDv85kyBf22KH9wjeqn W4ig== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZFlkdl8lZjjJs/iATNcGRmZPdeWEsDsB2bR6iPpU2Qk=; fh=ZwNWlp/FAS/pTRhxuS0g00R8iadbu/ltHVXFm15iJMY=; b=uzIqkRz+xjiTJRnLXbNNH0+QNKL3KYzJpFFz0Pza7PatKV3GarSEhRwbJ1xSPzTBJj wrwnNJgY/hYq7oWj/z6AmMvYwNmLvABylztnOWdIrv/WDs26C7qwGwRYGkRsXHYXtd3Z ObwPMwqfeKzpzd8tqG6xFtzco/agPviqOeD4lMmitMLoTjaaXbHpNA8jkaoaS8Mzcehd GiU1tmk3V68Cly6cBn5xBJBuqZ2sOLb0qzmGm4OaB+/O7J41CUL7tkvSZ20oK/P+pAGX HTSU6wXcR4nssMnfl/MNjLr4xp3wKet98Nic07CehDKtGPr6b1PpanbA/Red2b6SrliQ U5pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=gfVcrePn; 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-73483-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73483-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=hp.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l73-20020a63914c000000b005dc4300d4f0si6527755pge.444.2024.02.20.10.08.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 10:08:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73483-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=gfVcrePn; 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-73483-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73483-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BB0D4B22CD4 for ; Tue, 20 Feb 2024 17:59:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA0E67867A; Tue, 20 Feb 2024 17:59:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hp.com header.i=@hp.com header.b="gfVcrePn" 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 289EC77658 for ; Tue, 20 Feb 2024 17:58:57 +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=1708451940; cv=none; b=lbb79yw+CdLMVjtqX8b47/jhaaqR1d4dZhTK/Y1VhldEnDf9wktlJhonszqDC9tTXyHIc/2dW9aV4R18R0grJyU8kw6PbLRA4g6t04ZLmxE60acdd9sigdHNusOg5hLPbROnehy4Yt/Yp6cAUqmWzo+sTxCdQ65tGdFF4L5ecLQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708451940; c=relaxed/simple; bh=ZFlkdl8lZjjJs/iATNcGRmZPdeWEsDsB2bR6iPpU2Qk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ckt0BjDZv8PDCtHNrCmPSYLTM6+d5x3LbIxcEMg3DmMmwr00vteuj/O/h6ANYpWg2h6/dd6WrOYKaDF9I3XdKTjSVVMs5UwG6y43Tr0m4bOEAWQFQhyR8dOJVP63885t8QLTjkvtoG8VBQAsnRnO2lS7LKpwN2EitRNEbuO0Wbc= 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=gfVcrePn; 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=1708451936; 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: in-reply-to:in-reply-to:references:references; bh=ZFlkdl8lZjjJs/iATNcGRmZPdeWEsDsB2bR6iPpU2Qk=; b=gfVcrePn1W+Ee3YTpwL935cyGzZHSCJADW1hc7Biymp/om4mt9SkVaouAsWFtcvPA6Argn oI7mxsu/HyzZSmATG7xn1MX7pLtCiUH8Xazbmng/y/I9gz9wmafvZXvkvHCbdtl51D2511 LacbKrJBI5j7+uVS2Rsuht4lH7tZzTw= 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-540-TeU0FbfROz6XMrsyVfxQ0Q-1; Tue, 20 Feb 2024 12:58:45 -0500 X-MC-Unique: TeU0FbfROz6XMrsyVfxQ0Q-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 2D56020582; Tue, 20 Feb 2024 17:58:43 +0000 (UTC) Received: from localhost.localdomain (unknown [15.53.255.151]) by g7t14407g.inc.hpicorp.net (Postfix) with ESMTP id ACDF814; Tue, 20 Feb 2024 17:58:40 +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, Alexandru Gagniuc , stable@vger.kernel.org Subject: [PATCH] ALSA: hda/realtek: fix mute/micmute LED For HP mt440 Date: Tue, 20 Feb 2024 17:58:12 +0000 Message-Id: <20240220175812.782687-1-alexandru.gagniuc@hp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <87frxteoil.wl-tiwai@suse.de> References: <87frxteoil.wl-tiwai@suse.de> 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: 1791442293794857756 X-GMAIL-MSGID: 1791442293794857756 From: Eniac Zhang The HP mt440 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: Eniac Zhang 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 0ec1312bffd5..f1b204d34928 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -9902,6 +9902,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x8973, "HP EliteBook 860 G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8974, "HP EliteBook 840 Aero G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8975, "HP EliteBook x360 840 Aero G9", ALC245_FIXUP_CS35L41_SPI_2_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x897d, "HP mt440 Mobile Thin Client U74", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x103c, 0x8981, "HP Elite Dragonfly G3", ALC245_FIXUP_CS35L41_SPI_4), SND_PCI_QUIRK(0x103c, 0x898e, "HP EliteBook 835 G9", ALC287_FIXUP_CS35L41_I2C_2), SND_PCI_QUIRK(0x103c, 0x898f, "HP EliteBook 835 G9", ALC287_FIXUP_CS35L41_I2C_2), @@ -9932,6 +9933,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { 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, 0x8b3f, "HP mt440 Mobile Thin Client U91", ALC236_FIXUP_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),