CachyOS / CachyOS/linux-cachyos

[FEATURE] Add mute LED quirk for HP Pavilion 14-dv0xxx (ALC287)

Open
#1,015 0 comments 0 reactions 2 assignees Claimed by @ptr1337 View on GitHub
enhancement
Dominant language
Shell
Stars
4.5k
Forks
160
Avg merge
2d 12h
Merged PRs (30d)
1

Description

### Pre-flight checklist

- [x] I have searched existing issues/PRs and this has not been requested before.
- [x] I have read the [Contributing Guidelines](https://github.com/CachyOS/linux-cachyos/blob/master/CONTRIBUTING.md).

### Request type

- [x] New patch / patchset inclusion
- [ ] Kernel config change (enable/disable option)
- [ ] New kernel variant
- [ ] Scheduler tuning / addition
- [ ] Compiler / LTO / PGO optimization
- [ ] Security hardening
- [ ] Driver or hardware enablement
- [ ] Other

### Summary

### Device Information
- **Laptop**: HP Pavilion 14-dv0054tu (14-dv0xxx series)
- **Audio Controller**: Intel Tiger Lake-LP Smart Sound Technology (PCI `8086:a0c8`)
- **Codec**: Realtek ALC287
- **PCI Subsystem ID**: `103c:87c9`

### Problem
On Linux, the mute button LED (F5) does not light up because the PCI Subsystem ID `103c:87c9` is missing from `alc269_fixup_tbl` in `sound/hda/codecs/realtek/alc269.c`. The rest of the Pavilion series (`0x87c8`, `0x87cb`, `0x87cc`) use `ALC287_FIXUP_HP_GPIO_LED`.

### Proposed Patch
```diff
From: Allen
Subject: [PATCH] ALSA: hda/realtek: Add mute LED quirk for HP Pavilion 14-dv0xxx

HP Pavilion 14-dv0054tu (PCI SSID 103c:87c9) with Realtek ALC287 codec
controls the mute LED on the F5 key via GPIO 4 (mask 0x10).
Add a quirk entry with ALC287_FIXUP_HP_GPIO_LED to enable the mute LED.

Signed-off-by: Porphyrios
---
sound/hda/codecs/realtek/alc269.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c
index e434974..46fe156 100644
--- a/sound/hda/codecs/realtek/alc269.c
+++ b/sound/hda/codecs/realtek/alc269.c
@@ -7382,6 +7382,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x103c, 0x8788, "HP OMEN 15", ALC285_FIXUP_HP_MUTE_LED),
SND_PCI_QUIRK(0x103c, 0x87b7, "HP Laptop 14-fq0xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
SND_PCI_QUIRK(0x103c, 0x87c8, "HP", ALC287_FIXUP_HP_GPIO_LED),
+ SND_PCI_QUIRK(0x103c, 0x87c9, "HP Pavilion 14-dv0xxx", ALC287_FIXUP_HP_GPIO_LED),
SND_PCI_QUIRK(0x103c, 0x87cb, "HP Pavilion 15-eg0xxx", ALC287_FIXUP_HP_GPIO_LED),
SND_PCI_QUIRK(0x103c, 0x87cc, "HP Pavilion 15-eg0xxx", ALC287_FIXUP_HP_GPIO_LED),
SND_PCI_QUIRK(0x103c, 0x87d3, "HP Laptop 15-gw0xxx", ALC236_FIXUP_HP_MUTE_LED_COEFBIT2),
```

### Motivation / use case

This patch makes the mute button LED (on the F5 key) functional on the HP Pavilion 14 dv0054-tu laptop.

### Patch / upstream reference (if available)

_No response_

### Testing / benchmarks

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.