Public bug reported:

[Impact]
The mute key LED stays off on HP laptops with the Realtek ALC285 audio codec 
and PCI subsystem ID 103c:900c. The mute function itself still works. Only the 
LED is dead.

The codec has no quirk for this subsystem ID, so the LED GPIO is never
set up. No "platform::mute" LED device is created under
/sys/class/leds/, and the audio stack has no LED to drive.

Reported on the bug ticket: 1 of 1 units (CID: 202611-39773) shows the
bug.

[Fix]
Add one entry to alc269_fixup_tbl in sound/hda/codecs/realtek/alc269.c:

  SND_PCI_QUIRK(0x103c, 0x900c, "HP laptop", ALC285_FIXUP_HP_GPIO_LED)

The existing ALC285_FIXUP_HP_GPIO_LED fixup sets up the mute LED (GPIO
0x04) and the mic-mute LED (GPIO 0x01). This patch only adds the
matching entry for this subsystem ID. No other code changes.

Upstream commit: 029266e69620 ("ALSA: hda/realtek: Add LED fixup ..."), in 
linux-next (next-20261119). Checked with git merge-base --is-ancestor: it is 
contained in upstream v7.4-rc4. This is an rc tag, not a final release.
Mailing list: 
https://lore.kernel.org/lkml/[email protected]/

This backport is a cherry-pick with -x onto oem-7.3-next. It applied
with no conflict and no prerequisites. The commit is commit cfc1f3cb9a00
on the oem-7.3 work branch.

[Test Plan]
Status: NOT TESTED by the automation. The reproduce step was skipped, so the 
bug was not reproduced on a machine before the patch. The patch was not run on 
any machine either. Only the kernel build and checkpatch were run on the 
backport, with 0 errors and 0 warnings.

Verification done: kernel build of the backported tree and checkpatch.pl
(ignoring MISSING_SIGN_OFF, NO_AUTHOR_SIGN_OFF).

Verification still needed on an affected machine (HP laptop, subsystem ID 
103c:900c):
1. Check the subsystem ID:
   $ grep -i "subsystem id" /proc/asound/card*/codec#* 
   Expect 0x103c900c.
2. Boot the kernel built from this branch.
3. Check the LED device exists:
   $ ls /sys/class/leds/ | grep -i mute
   Expect a platform::mute device. Without the patch it is absent.
4. Press the mute key a few times and watch the mute LED.
   Expected result (from the ticket): the LED turns on and off with each press.
   Bug result (from the ticket, before the patch): the LED stays off.

Not covered: the mic-mute LED, which the same fixup also sets up, was
not checked. Also, the ticket says the patch author confirmed the fix on
the ticket. The automation did not test that, and that confirmation is
not a result from this run.

[Where problems could occur]
The change affects only the HP laptops with subsystem ID 103c:900c. Other 
machines are not touched, because the quirk table matches on the PCI subsystem 
ID.

If the fixup is applied to the wrong machine, the codec GPIO for the LED
could be toggled on a board that does not use it. The effect would be a
wrong LED state, not a sound failure.

The fixup also drives the GPIO for the mic-mute LED. If that GPIO is
wrong for this board, the mic-mute LED would show the wrong state, and
audio capture would not be affected.

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: linux-oem-7.3 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: jira-stella-4498 oem-priority resolute stella

** Tags added: jira-stella-4498 oem-priority stella

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2176180

Title:
  Mute key LED stays off on HP laptops with Realtek ALC285 codec

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/2176180/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to