From: Takashi Iwai <tiwai@suse.de>
To: Chris Chiu <chris.chiu@canonical.com>
Cc: Takashi Iwai <tiwai@suse.de>,
tiwai@suse.com, kailang@realtek.com, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] ALSA: hda/realtek: Add inverted LED quirk for HP ZBook 8 G2a
Date: Tue, 14 Jul 2026 07:33:24 +0200 [thread overview]
Message-ID: <87se5mjftn.wl-tiwai@suse.de> (raw)
In-Reply-To: <CABTNMG0iB9fGd9AAfvjjzsZULUaXr=sX_ZDL6riAAMgVZhnKqg@mail.gmail.com>
On Tue, 14 Jul 2026 03:55:53 +0200,
Chris Chiu wrote:
>
> On Mon, Jul 13, 2026 at 6:09 PM Takashi Iwai <tiwai@suse.de> wrote:
> >
> > On Mon, 13 Jul 2026 04:08:39 +0200,
> > Chris Chiu wrote:
> > >
> > > HP ZBook 8 G2a 14 and 16 (SSIDs 0x103c:0x8f94, 0x103c:0x8f95) use
> > > Realtek ALC245 codec with TAS2781 amplifier via I2C. These models
> > > require inverted speaker mute LED handling compared to the existing
> > > ALC245_FIXUP_HP_TAS2781_I2C_MUTE_LED quirk.
> > >
> > > The existing quirk produces opposite LED behavior: when speaker is
> > > muted, the LED turns off (should be on), and when unmuted, the LED
> > > turns on (should be off). This patch adds a dedicated quirk that
> > > properly handles the inverted LED polarity.
> > >
> > > Code flow explanation:
> > > - With HP pin (hp_pin != 0): Uses standard HDA LED framework via
> > > alc245_fixup_hp_mute_led_coefbit() for full control interface
> > > support, enabling both manual control and direct hardware updates.
> > >
> > > - Without HP pin (hp_pin == 0, speaker-only laptops): Registers
> > > direct vmaster_mute hook (alc245_hp_spk_mute_led_update_inverted)
> > > to control LED during mute operations, ensuring LED feedback
> > > without headphone jack detection capability.
> > >
> > > Both paths use inverted LED update logic to correct polarity and
> > > maintain backward compatibility with existing systems.
> >
> > So there can be multiple models with the same SSID and they have
> > different hardware configurations?
> >
>
> The new SSIDs 0x8f94 and 0x8f95 actually have the same hardware
> configuration as the old 0x8f40, 0x8f41, 0x8f42, 0x8f62 but different
> GPIO polarity. I tried to request that they remain aligned but received no
> positive response.
I guess v2 patch is broken in anyway, and that's the reason I asked
about the same SSID -- this one adds the entry for only 103c:8f95, so
I thought it's a change only to a single SSID. But the patch showed
that it already had 103c:8f94 with the non-existing inverted quirk...
I saw that v3 corrected it, but then the question remains: why do you
need to figure out the hp_pin dynamically? It's a static
configuration, and you can know beforehand, no?
thanks,
Takashi
prev parent reply other threads:[~2026-07-14 5:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 2:08 [PATCH v2] ALSA: hda/realtek: Add inverted LED quirk for HP ZBook 8 G2a Chris Chiu
2026-07-13 10:09 ` Takashi Iwai
2026-07-14 1:55 ` Chris Chiu
2026-07-14 5:33 ` Takashi Iwai [this message]
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=87se5mjftn.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=chris.chiu@canonical.com \
--cc=kailang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=tiwai@suse.com \
/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