From patchwork Thu Feb 15 15:49:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Gagniuc X-Patchwork-Id: 201633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp509069dyb; Thu, 15 Feb 2024 08:17:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV89M8nfchSUW1ZTFVIiPuR78SO+5R51MvVY6AVnsPWeNUM1CMQDtdnbQMuIJx2fyKDsBi/nR5mJhIaRH58AVrpRzJitA== X-Google-Smtp-Source: AGHT+IHpOKnICxeJTKlaX/tXrmtLlLEM14znhJvuRJee664sgH/HrvIpQ62heFboQlQF8zEv4KWw X-Received: by 2002:a05:6a20:9c97:b0:19e:5ac2:a342 with SMTP id mj23-20020a056a209c9700b0019e5ac2a342mr2939768pzb.17.1708013827653; Thu, 15 Feb 2024 08:17:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708013827; cv=pass; d=google.com; s=arc-20160816; b=F93r8LNiQp7r47mc2gla+5v495DSEkZ3hETFPnFHEAQSR4yQ/PgJJ5ktgZhuNCnTR3 fddX1WCPAYB1GpKvvZNqO5RyMhmhh2KOGbdVmGcGdJx/849j19g/SJ1dLP3dAUslcdtm rbw/8o/SSnblALtvK5bIxRafLTdP8uYzaXcSqLR6Zw45ljMS9NFmySLQWUGaVKW72onw i0VEpZMnUBOtrtcPOKNVElqP49o+2M+rmRosZ0gGtaTjR3UPmpayKAJlsXpuNMBCOxiw iqqdH1jBzRDE5fNnEh4MVKumAINEP9UcQaFiaRAMJfvnb78zHJsuzKTwaxBzfpXMlps0 Rqlw== 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=0UxlDs5v98il8Yvx5898jp0zflTPlEd7LBBWGgaz4vE=; fh=ZwNWlp/FAS/pTRhxuS0g00R8iadbu/ltHVXFm15iJMY=; b=morzREFGgbU8JGczVoVj+9k7Dqd35/l21MZAaf8Apgwgv0oaLT+HCTG4wYNiHrqMSv lEL7mRV40CabbVd3Ii9Ikg3DdWWFzRd1OOaHVNBDPRxyoh8JRvnifsl0zhYB1dacRYrz IXey/U1F3QeF0gkKzAGB/1wJjN75otZ+qBayT/XkgKFZDC9DMhzheE/GEOWXm6VqN5+d hOhn68DuFXFF2nEC+XGCWy5tcB6ZWw92tD7TVAVa9AAqIcpHnJSm0OlXEjOcUPPK37lR fq7R5P5aFqlXpT30B+JsYypoQtdDyXH5qcAZgKb9iOGOQxkzy8ATKaoA+OQaqlhmBdqY hyNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hp.com header.s=mimecast20180716 header.b=DPdt9LWk; 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-67240-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67240-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 c17-20020a637251000000b005dbe2220330si1375130pgn.171.2024.02.15.08.17.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:17:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67240-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=DPdt9LWk; 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-67240-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67240-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 67FAAB25C37 for ; Thu, 15 Feb 2024 15:51:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 530751339BE; Thu, 15 Feb 2024 15:49:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=hp.com header.i=@hp.com header.b="DPdt9LWk" 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 94952133982 for ; Thu, 15 Feb 2024 15:49:54 +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=1708012196; cv=none; b=tX1SZeF0KIrKqyZQptSR4joXBLN5iUJa+Du3ahxGWLUnqCmX2NhVP855OpT7+uplUuijs7gDrFX7WupbfDuenzy9ogYT8uas5gtoScB+R4f9HyArIMD8YFKMCfjQkd4UieZdvNICNgauUIfEIR2CpjvdeERrdmRRTmoDqq99fLc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708012196; c=relaxed/simple; bh=0UxlDs5v98il8Yvx5898jp0zflTPlEd7LBBWGgaz4vE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=qthzddX4unHVoVHArXN4PzFSipoa7Jm56Pfw+9q/AQnhUry9+XXtBcX4f2flz1AE3TZxdpY4JhDnWBZG+ps/eLrHfeZYGJ/5LMYM9nscEbwWPrvFMlbNh/RkCWb8lXdbvaa2CLQUsao8HX7F/1QOjTEI8eAJPtwtP6s2VdDySRo= 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=DPdt9LWk; 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=1708012193; 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=0UxlDs5v98il8Yvx5898jp0zflTPlEd7LBBWGgaz4vE=; b=DPdt9LWkOPjBXUEiNVNUIQMGOD6ZyBi/Qy/zg3jWugvbGgcyYVw3QJFQrVi2d1MB753gat mXtuCHl9R5veWpyLJzRcEB6W6fdnOYp7XVGbu8c2HZMo0bGvUe0tUONJ1C923NP64RiKiH lXbNMzBqGl2L22GhxML7YSBL1luXaGg= Received: from g8t01560s.inc.hp.com (g8t01560s.inc.hp.com [15.72.64.154]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-352-5jmfhb03Pduo__cOpimguQ-1; Thu, 15 Feb 2024 10:49:52 -0500 X-MC-Unique: 5jmfhb03Pduo__cOpimguQ-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 g8t01560s.inc.hp.com (Postfix) with ESMTPS id 06CD720399; Thu, 15 Feb 2024 15:49:50 +0000 (UTC) Received: from localhost.localdomain (unknown [15.53.255.151]) by g7t14407g.inc.hpicorp.net (Postfix) with ESMTP id C23FF17; Thu, 15 Feb 2024 15:49:48 +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 v2] ALSA: hda/realtek: fix mute/micmute LED For HP mt645 Date: Thu, 15 Feb 2024 15:49:22 +0000 Message-Id: <20240215154922.778394-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: 1790901373421408383 X-GMAIL-MSGID: 1790982307689681835 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: Eniac Zhang Signed-off-by: Alexandru Gagniuc Cc: --- Changes since version 1: - Adjusted Signed-off-by lines to include original author. 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),