From patchwork Fri Jun 18 09:25:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Chi X-Patchwork-Id: 12330715 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36334C48BDF for ; Fri, 18 Jun 2021 09:26:16 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 08472613D6 for ; Fri, 18 Jun 2021 09:26:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 08472613D6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 5D9991706; Fri, 18 Jun 2021 11:25:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5D9991706 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1624008373; bh=PZHIJb8V57r4Bwis5uLp8FoGAnWanjj2H51slUSKVpM=; h=To:From:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=svzcsaxi1aCHgNiX23VOAYoGNnN4Y9wFivqCTE4uygATQg45xgCj1pzbLRaPS/V6L S957CxK26ZrfhMutKXmI++6NZn2otsGGoEchdUZVNVqYY2NgI32i3jlUOpoLPhLYbd rtiYkDAk/1ms7V2nhKHMjGdFrVEFe3mHtEwFukxg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E55D8F802E8; Fri, 18 Jun 2021 11:25:22 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4985EF8032D; Fri, 18 Jun 2021 11:25:21 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 410F7F80084 for ; Fri, 18 Jun 2021 11:25:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 410F7F80084 Received: from mail-pg1-f198.google.com ([209.85.215.198]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1luAkT-0003qb-Il for alsa-devel@alsa-project.org; Fri, 18 Jun 2021 09:25:13 +0000 Received: by mail-pg1-f198.google.com with SMTP id l28-20020a63571c0000b02902224bbd5ea1so5496934pgb.16 for ; Fri, 18 Jun 2021 02:25:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=E7KqypH/WQUMF9Du8fxlBjjhwnPAUXJyG3rzSTA+emY=; b=bGfetSwvuvfkX8IxDVh7Wzr9A2NYuDte4bL9/ojVFMhy6Tnc/u/vBQFFUHpu78RYuO Pl1XimfhOpguIpy2M42IISRMXTkmGWw3fdlP4V42nymElkDSEVlWnOTaFicvCpqdpKiT AHan6wNWvykuFIT+uy0ShJNZ3NOd+U57TcOOjhJ4WVTZYVBkeQJE8cmCelBGBp3pOEI4 TCvPPkuvHCPdLV3uA2x+iwS4nZRH4aOdsPyk0YeKFiU+rL52AqPDkG+6B+N+4SWFnSwo qOMK91o52QJ9rhf4z4HDzSB98DYn5dYsexuzEEecF80Z7wOHJFwd39EmpAkKAIO7U2eX u7Fw== X-Gm-Message-State: AOAM532EFV2++fZWi3xMksq71pGAnM7WUTdWvFzcfZAuQTbr+bhsTtW5 A6F42hp1e/Bb4JCHm6Zn5Wpconans3IZ4OWlTcA8XtLZyUfSzYiK7yJDdtwZOANtjYX21irhQFp jICgBVjr1yfwl1POiGCGXvH37jov/snGezbkIgoCm X-Received: by 2002:a17:902:e04f:b029:eb:66b0:6d08 with SMTP id x15-20020a170902e04fb02900eb66b06d08mr4000883plx.50.1624008312362; Fri, 18 Jun 2021 02:25:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBfPjy4mQOWDzzfnsRaE2kmGYfR4rlU94En6udVPlvJdf1w5SSLHY/oatMVmTc+0nXg05gHw== X-Received: by 2002:a17:902:e04f:b029:eb:66b0:6d08 with SMTP id x15-20020a170902e04fb02900eb66b06d08mr4000863plx.50.1624008311911; Fri, 18 Jun 2021 02:25:11 -0700 (PDT) Received: from [192.168.0.101] (36-224-193-219.dynamic-ip.hinet.net. [36.224.193.219]) by smtp.gmail.com with ESMTPSA id r19sm7292633pfh.152.2021.06.18.02.25.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 02:25:11 -0700 (PDT) To: alsa-devel@alsa-project.org From: Andy Chi Subject: [PATCH 1/2] ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 450 G8 Message-ID: <7797aabe-83c7-a63c-7749-73dea0e25f54@canonical.com> Date: Fri, 18 Jun 2021 17:25:09 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 Content-Language: en-US Cc: tiwai@suse.de, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From fdeab6f32dbdbfd83c9af6efc5a51f91021b6578 Mon Sep 17 00:00:00 2001 From: Andy Chi Date: Fri, 18 Jun 2021 16:17:48 +0800 Subject: [PATCH 1/2] ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook  450 G8 The HP ProBook 450 G8 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 | 1 +  1 file changed, 1 insertion(+)      SND_PCI_QUIRK(0x103c, 0x87f2, "HP ProBook 640 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),      SND_PCI_QUIRK(0x103c, 0x87f4, "HP", ALC287_FIXUP_HP_GPIO_LED),      SND_PCI_QUIRK(0x103c, 0x87f5, "HP", ALC287_FIXUP_HP_GPIO_LED), diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index ab5113cccffa..70bc5b11acfd 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8336,6 +8336,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {                ALC285_FIXUP_HP_GPIO_AMP_INIT),      SND_PCI_QUIRK(0x103c, 0x87c8, "HP", ALC287_FIXUP_HP_GPIO_LED),      SND_PCI_QUIRK(0x103c, 0x87e5, "HP ProBook 440 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED), +    SND_PCI_QUIRK(0x103c, 0x87e7, "HP ProBook 440 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED), From patchwork Fri Jun 18 09:28:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Chi X-Patchwork-Id: 12330755 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 481ADC48BDF for ; Fri, 18 Jun 2021 09:30:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6C650613DB for ; Fri, 18 Jun 2021 09:30:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C650613DB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7CDAA170A; Fri, 18 Jun 2021 11:29:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7CDAA170A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1624008606; bh=SiLoPAvM/Fye6ghUgbRStLteWtoKAR7gjbQpjwIhpKU=; h=Subject:From:To:References:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GbQYDGcDcWVl52KHEpmnZgzQyjI885si6FrQhFKL3dno0e/KQm4Nmbt2i3EnaGxpF st57eRfi1Cmv4A6ipe54QzSdfeVuLzj97ID56KTcfjkxYLleP2qZ1t5dt+DNtQ3z80 P/+Po6KQmB+YQi4mLu+XdkoDvZAG+r0jCDh3gRTw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D4CC3F802E8; Fri, 18 Jun 2021 11:29:15 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 096DDF8032D; Fri, 18 Jun 2021 11:28:48 +0200 (CEST) Received: from youngberry.canonical.com (youngberry.canonical.com [91.189.89.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 93B8CF80084 for ; Fri, 18 Jun 2021 11:28:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 93B8CF80084 Received: from mail-pj1-f72.google.com ([209.85.216.72]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1luAni-00047e-Rq for alsa-devel@alsa-project.org; Fri, 18 Jun 2021 09:28:34 +0000 Received: by mail-pj1-f72.google.com with SMTP id on11-20020a17090b1d0bb029016bba777f5fso5760764pjb.7 for ; Fri, 18 Jun 2021 02:28:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=2GptbyilHSJibKkapjpgEo+GB+erd/HF+VFbdT2MZPQ=; b=LbC/uv2bxittHkIBgjPTqU7zZQwqAxzzIsrY13H2nv1UBF2t8m3LP4EaK6qYUxNVy4 JPcTbkLme7cMuku0AuQmEb9aoHl5SKMfBS4we/ExE/1iBSWOqwGLEmtCyOoLMk1beJP2 wfRQ8/TYQvH+4rzQDLFOaknj6qR3dSKmckh1wQTV/fmwma1yHkXjFisVP4cJysge1h3x /p31z1h6E6xJ5XZVBFAq4GJoCj2+aLLNRBlnROXUPFLn/yLt6DnEdr7QkXbBfMAXxL1h HocN3RzIRijPVqmX6h5AQWoDQmgFZHimRJzTLJuAyj4r2zgY2VTdXzXLRtVwDdA5HFCa aD3g== X-Gm-Message-State: AOAM533T0atO6sa5AHGWmhpgsKdJw/WpN9LIjy8WZSIWMI701BTmkUBH sKudXLGKPz+BXD9WJNZ9LT5sLi917JPQ8R1cxbI4tMtO/m4j4XWVj7aiQAnDisRYoXNOuwGL02a QgjWNV41s0iA1grOYuQG5i+kL0uFLLtPZ5aU4VXH0 X-Received: by 2002:a65:67c8:: with SMTP id b8mr141809pgs.109.1624008513649; Fri, 18 Jun 2021 02:28:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXnIVc7lGI0Dljcv1tKbxWJjIbevKkXW7lVWuJgHjr5aEGwcz2xPra6ux+5/PHdNe91AuNMw== X-Received: by 2002:a65:67c8:: with SMTP id b8mr141797pgs.109.1624008513503; Fri, 18 Jun 2021 02:28:33 -0700 (PDT) Received: from [192.168.0.101] (36-224-193-219.dynamic-ip.hinet.net. [36.224.193.219]) by smtp.gmail.com with ESMTPSA id y7sm1654573pja.8.2021.06.18.02.28.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 02:28:32 -0700 (PDT) Subject: [PATCH 2/2] ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 445 G8 From: Andy Chi To: alsa-devel@alsa-project.org References: <7797aabe-83c7-a63c-7749-73dea0e25f54@canonical.com> Message-ID: <5c5790ba-d21b-20ff-7ded-b92ca597f9a2@canonical.com> Date: Fri, 18 Jun 2021 17:28:31 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <7797aabe-83c7-a63c-7749-73dea0e25f54@canonical.com> Content-Language: en-US Cc: tiwai@suse.de, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" From f6d2556f8f6bcdd2261b48604b8086fb67ae9a03 Mon Sep 17 00:00:00 2001 From: Andy Chi Date: Fri, 18 Jun 2021 16:23:06 +0800 Subject: [PATCH 2/2] ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook  445 G8 The HP ProBook 445 G8 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 | 1 +  1 file changed, 1 insertion(+) +    SND_PCI_QUIRK(0x103c, 0x8863, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED),      SND_PCI_QUIRK(0x103c, 0x886d, "HP ZBook Fury 17.3 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),      SND_PCI_QUIRK(0x103c, 0x8870, "HP ZBook Fury 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),      SND_PCI_QUIRK(0x103c, 0x8873, "HP ZBook Studio 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT), diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 70bc5b11acfd..a1e62b2de167 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8344,6 +8344,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {      SND_PCI_QUIRK(0x103c, 0x8846, "HP EliteBook 850 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),      SND_PCI_QUIRK(0x103c, 0x884b, "HP EliteBook 840 Aero G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),      SND_PCI_QUIRK(0x103c, 0x884c, "HP EliteBook 840 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),