Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2929838iog; Mon, 20 Jun 2022 07:42:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ugQIto+eGPzPsE4OtA8Cn8XX0mPrBC19ouPP9gettAxHe1J+PnSAtyEF4dNd3JDgMwCuq2 X-Received: by 2002:a05:6a00:4211:b0:51c:45e:532b with SMTP id cd17-20020a056a00421100b0051c045e532bmr25001148pfb.10.1655736158809; Mon, 20 Jun 2022 07:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655736158; cv=none; d=google.com; s=arc-20160816; b=OWkzkxNNvKu6dOXLxiudcMPXH6qqpTVc0tg2q+n82T2dFwxvqS04YpeBpCJ7rYrrm4 VMCNzBU7uYst+d9WWKkzFq5WYYdwkZo2PfphFukcIQbib+xTJ7GDYCt1MchIGqMFTbYK 3a7a6HX1Qe1dkoZyV61/r3NeokueaGUqqDfivAy0B9d6UUxdLtysogwy7IYWcNXpiSCX vOmghv1HpCQhk+iDwYml4dzju7e9q3n3MrONIyG7xNXpVY6fCaBHPE6OUgXRzYQ2yh/N f2IhDfv0qxOJHJJ7JgqbESGCAJWoS2EDO4fRY+wE4FsUFFhVQ+6wlolRMo3iUIgvzwfv ynVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kw78CddUBy6vwA5hKaHE3uyZ+9LxV2PqsEHx8n00sy8=; b=eVM81b44/n1sxBMEEmQI/v8MmI0nuhdmX2vCUdcWLR5O01o+Io/xNzJXEMyOXqXZ7n VO5SBWl5U/WOTAnMJMFLoytHOv3lDLD8ATNcVIFRoy1gWcwgKHH09o9gkV+wATA+G0LH c6XtlS8eZ4OMrKGSfOUFXrSo4mDWVK3W7Twm2xT76XxtLwSss/HdORQXjVUbKbF+R4nS 6zX+/ZQKD6xOa/2jb2zj/QX1PFBxZ4e1zTkTz/vMhYNoWATdu3lqPwJAsphGXNgy9Z31 b7uxZyAdUkNukSS1RrIhysQqqGXrMAsrN58cPcgOFCASBNkERMoJkv9rmV6KgBqKkXwQ MVOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LYmBm4TU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k11-20020a170902d58b00b00163eff0e71esi642852plh.572.2022.06.20.07.42.25; Mon, 20 Jun 2022 07:42:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LYmBm4TU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351283AbiFTOJM (ORCPT + 99 others); Mon, 20 Jun 2022 10:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352775AbiFTN5D (ORCPT ); Mon, 20 Jun 2022 09:57:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A9ED13F60; Mon, 20 Jun 2022 06:22:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1AF666129B; Mon, 20 Jun 2022 13:22:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE47EC3411B; Mon, 20 Jun 2022 13:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655731355; bh=flmuJNQMN5SPnQ7kfBxwfFnmeOGff5nDkDe3k7i3V4s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LYmBm4TUyOkhhaCrB3NgEnexVJkVFHQwF4WmCaNVDyXoV/xSlDAV0OuWRvEK1kvUC F49AkhrteAXQFQlaDXyS87CVBojFNQDt3YEw22F3eyDnqUnKbDdjIQh3A78rxNsd3l NsdnVwdmr0XKa1DPvS/WaTe+2O2GWSQjcMgBqP/s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeremy Szu , Takashi Iwai , Sudip Mukherjee Subject: [PATCH 5.4 231/240] ALSA: hda/realtek: fix mute/micmute LEDs for HP 440 G8 Date: Mon, 20 Jun 2022 14:52:12 +0200 Message-Id: <20220620124745.650869795@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220620124737.799371052@linuxfoundation.org> References: <20220620124737.799371052@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeremy Szu commit e7d66cf799390166e90f9a5715f2eede4fe06d51 upstream. The HP EliteBook 840 G8 Notebook PC is using ALC236 codec which is using 0x02 to control mute LED and 0x01 to control micmute LED. Therefore, add a quirk to make it works. Signed-off-by: Jeremy Szu Cc: Link: https://lore.kernel.org/r/20210316074626.79895-1-jeremy.szu@canonical.com Signed-off-by: Takashi Iwai [sudip: adjust context] Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4296,6 +4296,12 @@ static void alc_fixup_hp_gpio_led(struct } } +static void alc236_fixup_hp_gpio_led(struct hda_codec *codec, + const struct hda_fixup *fix, int action) +{ + alc_fixup_hp_gpio_led(codec, action, 0x02, 0x01); +} + static void alc269_fixup_hp_gpio_led(struct hda_codec *codec, const struct hda_fixup *fix, int action) { @@ -6477,6 +6483,7 @@ enum { ALC294_FIXUP_ASUS_GU502_VERBS, ALC285_FIXUP_HP_GPIO_LED, ALC285_FIXUP_HP_MUTE_LED, + ALC236_FIXUP_HP_GPIO_LED, ALC236_FIXUP_HP_MUTE_LED, ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, @@ -7753,6 +7760,10 @@ static const struct hda_fixup alc269_fix .type = HDA_FIXUP_FUNC, .v.func = alc285_fixup_hp_mute_led, }, + [ALC236_FIXUP_HP_GPIO_LED] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc236_fixup_hp_gpio_led, + }, [ALC236_FIXUP_HP_MUTE_LED] = { .type = HDA_FIXUP_FUNC, .v.func = alc236_fixup_hp_mute_led, @@ -8174,6 +8185,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x103c, 0x8760, "HP", ALC285_FIXUP_HP_MUTE_LED), SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED), SND_PCI_QUIRK(0x103c, 0x877d, "HP", ALC236_FIXUP_HP_MUTE_LED), + SND_PCI_QUIRK(0x103c, 0x87e5, "HP ProBook 440 G8 Notebook PC", ALC236_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),