mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: patryk.dankow@protonmail.com
To: linux-sound@vger.kernel.org
Cc: "Patryk Dańków" <patryk.dankow@protonmail.com>,
	perex@perex.cz, tiwai@suse.com, zhangheng@kylinos.cn,
	dnaim@cachyos.org, damien.dagorn29@gmail.com,
	kailang@realtek.com, habilerenturker@hotmail.com,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] ALSA: hda/realtek: Add mute LED support for ASUS PM3406CKA
Date: Tue, 15 Sep 2026 17:41:36 +0000	[thread overview]
Message-ID: <20260915174110.67871-3-patryk.dankow@protonmail.com> (raw)
In-Reply-To: <20260915174110.67871-1-patryk.dankow@protonmail.com>

From: Patryk Dańków <patryk.dankow@protonmail.com>

Enable vmaster mute LED handling for the PM3406CKA while retaining
the existing CS35L41 I2C fixup by chaining the new fixup to it.

Tested on ASUS ExpertBook PM3406CKA.

Signed-off-by: Patryk Dańków <patryk.dankow@protonmail.com>
---
 sound/hda/codecs/realtek/alc269.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index 3abee617e86e..d1f0c2752624 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -180,6 +180,15 @@ static void alc_enable_headset_jack_key(struct hda_codec *codec)
 	}
 }
 
+static void alc_fixup_pm3406cka_vmaster_led(struct hda_codec *codec,
+					    const struct hda_fixup *fix, int action)
+{
+	struct alc_spec *spec = codec->spec;
+
+	if (action == HDA_FIXUP_ACT_PRE_PROBE)
+		spec->gen.vmaster_mute_led = 1;
+}
+
 static void alc_fixup_headset_jack(struct hda_codec *codec,
 				    const struct hda_fixup *fix, int action)
 {
@@ -4383,6 +4392,7 @@ enum {
 	ALC287_FIXUP_YOGA9_14IAP7_BASS_SPK_PIN_HEADSET,
 	ALC285_LENOVO_DAC_RENAME,
 	ALC287_FIXUP_YOGA9_SPEAKER2_TO_DAC1,
+	ALC_FIXUP_PM3406CKA_VMASTER_LED,
 };
 
 /* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -7129,6 +7139,12 @@ static const struct hda_fixup alc269_fixups[] = {
 		.chained = true,
 		.chain_id = ALC287_FIXUP_TXNW2781_I2C,
 	},
+	[ALC_FIXUP_PM3406CKA_VMASTER_LED] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc_fixup_pm3406cka_vmaster_led,
+		.chained = true,
+		.chain_id = ALC287_FIXUP_CS35L41_I2C_2,
+	},
 };
 
 static const struct hda_quirk alc269_fixup_tbl[] = {
@@ -7786,7 +7802,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
 	SND_PCI_QUIRK(0x1043, 0x13b0, "ASUS Z550SA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_ASUS_ZENBOOK),
 	SND_PCI_QUIRK(0x1043, 0x1433, "ASUS GX650PY/PZ/PV/PU/PYV/PZV/PIV/PVV", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
-	SND_PCI_QUIRK(0x1043, 0x1454, "ASUS PM3406CKA", ALC287_FIXUP_CS35L41_I2C_2),
+	SND_PCI_QUIRK(0x1043, 0x1454, "ASUS PM3406CKA", ALC_FIXUP_PM3406CKA_VMASTER_LED),
 	SND_PCI_QUIRK(0x1043, 0x1460, "Asus VivoBook 15", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
 	SND_PCI_QUIRK(0x1043, 0x1463, "Asus GA402X/GA402N", ALC285_FIXUP_ASUS_I2C_HEADSET_MIC),
 	SND_PCI_QUIRK(0x1043, 0x1473, "ASUS GU604VI/VC/VE/VG/VJ/VQ/VU/VV/VY/VZ", ALC285_FIXUP_ASUS_HEADSET_MIC),
-- 
2.55.0



  parent reply	other threads:[~2026-09-15 17:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15 17:41 [PATCH 0/2] Add ASUS ExpertBook mute LED support patryk.dankow
2026-09-15 17:41 ` [PATCH 1/2] platform/x86: asus-wmi: Add " patryk.dankow
2026-09-15 19:43   ` Denis Benato
2026-09-15 17:41 ` patryk.dankow [this message]
2026-09-16  7:40   ` [PATCH 2/2] ALSA: hda/realtek: Add mute LED support for ASUS PM3406CKA Takashi Iwai
2026-09-18 18:27 ` [PATCH 0/2] Add ASUS ExpertBook mute LED support Ilpo Järvinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260915174110.67871-3-patryk.dankow@protonmail.com \
    --to=patryk.dankow@protonmail.com \
    --cc=damien.dagorn29@gmail.com \
    --cc=dnaim@cachyos.org \
    --cc=habilerenturker@hotmail.com \
    --cc=kailang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=zhangheng@kylinos.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®