Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1720873pxp; Thu, 17 Mar 2022 15:27:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYCGhS1c2MAfCJrVcwloagCEJMq1rHburWj7ddQuBIW5696iORFWszk4GCUkAdc6Qe6tZU X-Received: by 2002:a17:90a:9412:b0:1bc:f629:43bc with SMTP id r18-20020a17090a941200b001bcf62943bcmr18284109pjo.103.1647556058724; Thu, 17 Mar 2022 15:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647556058; cv=none; d=google.com; s=arc-20160816; b=Vzzpq/MBIGCTITDgYcrQOiHG/8Yg9A+y/+nvYl/ZgLasI09SCbBfyHDufm+YCxdF96 D/H2VqRYrOEBZwP8DGlHZfyVAYQQOCPS+daIwNlnCohQbk/x/1rQu941Vw52q0NRzX1m IJcHQ703kkjF2NxPfBh2e3GCbqzlcvALcCz3csnkzCYS8zCcGF0BWoFfGQFK84J6y4k8 4RdCsqT4lqqnULK7Y+0keec5FAv4Do3aQxTA1l0bGzy4HN3/YBHsZAi+zBlNujPzlPd7 pihLhQ83xiawToYWD6VqlnmpTVAuxK8Prgxx1ZfnNxED7lrzEnTYQ0gH8yUaaCYy2mW0 X/ZQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GSGY9xvV7/cHW9kKHfcQPWbJ+8pjDmIgHHQ0jRgjQco=; b=ZNcN72mlEK1HpntVEoLc7gp5YHgR2QlzrCQfRmL4XbYWAUiusgVzoanseiOC8h+9FO tM7K0Z8uaGSTd54mfY0VBbD7zBsfp/PayKIQyB0GlgWCHUM9E8H1N4W5W3y7b36PHJSS fHURkYQR2wy1pDKJaxcgZFLxSfPWWeB8MwmeE9kBDipQteODAoNE3p471kz2gNrpgaoS hTqNgV+nVpQJ5FFtFXoZPMmNz3VaaaWjB0AWJsrXcrFV5dGw4OVGL56mmY79480ItPqy lVoBk8F1ZOf3Rivcd3b7nRNrHcZDGCNrbfeoYS7d2dK5bt3LcyJZusA5TOl62LAfs3yC WwrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=JScbuvNg; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n10-20020a170903110a00b00153b2d16444si337443plh.76.2022.03.17.15.27.24; Thu, 17 Mar 2022 15:27: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=@canonical.com header.s=20210705 header.b=JScbuvNg; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbiCQWNo (ORCPT + 99 others); Thu, 17 Mar 2022 18:13:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbiCQWNn (ORCPT ); Thu, 17 Mar 2022 18:13:43 -0400 Received: from smtp-relay-canonical-1.canonical.com (smtp-relay-canonical-1.canonical.com [185.125.188.121]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DDBB29C94A for ; Thu, 17 Mar 2022 15:12:26 -0700 (PDT) Received: from localhost.localdomain (unknown [10.101.196.174]) (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 7191141922; Thu, 17 Mar 2022 22:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1647555144; bh=GSGY9xvV7/cHW9kKHfcQPWbJ+8pjDmIgHHQ0jRgjQco=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=JScbuvNgfJZNPo1B66r4RAkRLKVBcNqKt8K4fDEm256jiBV082ldnIN/HDpvk2GIV N7O3WsfUQcAVJ7jJwWA975ldgqNiVzKcAeErTDsZEstxTSlhct9YAH/PW/daDLrqMo vGkcqHXLdcCo47/L+tqPFYIWinaIGxEVLmYN/vbIi8i3qikGyAyLo9wkLWZdFaWSia 6F9xztHCbQJexrIDqWJhWeoFV/7V0a1ThciivQDsLCRI+F0psxRvpyJdfLygp+iUSq Rs5V+lutFWF8KMwavhUCsR9zO6WIVAOayqVUwomxFsleeIRQ8IbCU9rLtoxmNa1WZ9 lErm8GMbgnLKg== From: Kai-Heng Feng To: tiwai@suse.com Cc: Kai-Heng Feng , Jaroslav Kysela , Jeremy Szu , Werner Sembach , Hui Wang , Lucas Tanure , Cameron Berkenpas , Kailang Yang , Sami Loone , Hans de Goede , Stefan Binding , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: hda/realtek: Fix LED on Zbook Studio G9 Date: Fri, 18 Mar 2022 06:11:33 +0800 Message-Id: <20220317221134.566358-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Commit 07bcab93946c ("ALSA: hda/realtek: Add support for HP Laptops") breaks mute and micmute LEDs because it changed the LED quirk from ALC285_FIXUP_HP_GPIO_LED to ALC245_FIXUP_HP_GPIO_LED, so change it back here. Also reorder the chain of quirks to ensure LED quirk is the last one being applied. Fixes: 07bcab93946c ("ALSA: hda/realtek: Add support for HP Laptops") Signed-off-by: Kai-Heng Feng --- sound/pci/hda/patch_realtek.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 4650ef9110d62..1d14be4ee31d8 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8773,9 +8773,9 @@ static const struct hda_fixup alc269_fixups[] = { }, [ALC245_FIXUP_CS35L41_SPI_4_HP_GPIO_LED] = { .type = HDA_FIXUP_FUNC, - .v.func = alc245_fixup_hp_gpio_led, + .v.func = cs35l41_fixup_spi_four, .chained = true, - .chain_id = ALC245_FIXUP_CS35L41_SPI_4, + .chain_id = ALC285_FIXUP_HP_GPIO_LED, }, [ALC285_FIXUP_HP_SPEAKERS_MICMUTE_LED] = { .type = HDA_FIXUP_VERBS, -- 2.34.1