Skip to content

linux-omarchy: fix XPS 13 speaker-ID GPIO discovery - #527

Open
mranallo wants to merge 1 commit into
omacom:masterfrom
mranallo:fix/xps13-cs42l43-speaker-id
Open

mranallo wants to merge 1 commit into
omacom:masterfrom
mranallo:fix/xps13-cs42l43-speaker-id

Conversation

@mranallo

Copy link
Copy Markdown

The Dell XPS 13 DX13260 loses built-in speaker playback when moving from
linux-ptl 7.1.8 to linux-omarchy 7.2.5-3. With this patch on the same 7.2.5-3
kernel, the SPI driver reads speaker ID 2 from two GPIOs, both amplifiers
load firmware and calibration, and the owner confirms audible playback
after reboot. The stock driver reads an incomplete ACPI speaker-ID
description and selects nonexistent spkid0 firmware.

Carry Richard Fitzgerald's unmodified CS42L43 GPIO-reading patch
in linux-omarchy, with both source checksums and a package release bump.
The fix selects the existing firmware from the GPIO values; it does not
alias spkid0 to another tuning. The same patch was proposed for linux-ptl
in #419, which closed without merging.

Validation on an XPS 13 DX13260, SKU 0E54 / SSID 1028:0e54, BIOS 1.6.0:

  • Owner-confirmed working audio on 7.1.8 and failure on 7.2.3 and 7.2.5-3.
  • Stock 7.2.5-3 logs show FIRMWARE_MISSING for both amplifiers.
  • Unmodified v7.2.5 driver rebuilt against installed headers has the same
    source version as the loaded stock module.
  • Cirrus patch applies without fuzz and the affected module builds against
    7.2.5-3-omarchy headers.
  • PKGBUILD syntax, source/checksum alignment, all local BLAKE2/SHA256
    checksums, and whitespace checks on the recipe and applied C source pass.
  • Local DKMS build/install and boot-image rebuild pass. Module selection
    points at the override; the boot image contains no stale stock SPI driver.
  • After reboot, patched driver version 0.1.0 is loaded on 7.2.5-3-omarchy
    (local DKMS test build of the same patch, plus a module-version marker).
  • spk-id-gpios = 2 from 2 GPIOs; both amplifiers load firmware v4.5.9.
  • Both log Calibration applied and both CAL_SET_STATUS controls are Set.
  • Left tuning: PID 0x112481, SID 0x352202, TID 0x342200; right tuning:
    PID 0x112481, SID 0x352212, TID 0x342200.
  • No FIRMWARE_MISSING in the post-reboot kernel log.
  • Owner personally confirms audible built-in speaker playback after reboot.
  • Full kernel build: not performed.

This is a candidate backport. Upstream bug 221956
remains under review, including confirmation of physical speaker type and
GPIO bit ordering. Existing reports of successful playback are not treated
as proof of that mapping on every machine. Maintainer/upstream review is
needed before shipping broadly.

Related: omacom/omarchy#9687, omacom/omarchy#11374.

Diagnostics, the local test package, and this packaging change were prepared
with Codex assistance. Playback was tested by the laptop owner; the log and
mixer results above were read from the machine after that reboot.

@kwilczynski
kwilczynski self-requested a review September 19, 2026 07:35
@kwilczynski

Copy link
Copy Markdown
Member

@mranallo thank you for the report!

This should have been included in our kernel, but it seems I have missed it.

I will add this patch back and ready new kernel release.

Sorry for troubles here!

@mranallo

Copy link
Copy Markdown
Author

@kwilczynski No problem! Thanks for all your work.

maralcbr added a commit that referenced this pull request Sep 25, 2026
groups=('omarchy-platform-apple-silicon') is the platform tag the pacman
platform guard reads (omacom/omarchy-mac#539); the package is not published
yet, so it carries the tag from its first build. The pin moves to 3a58abb5,
omacom/omarchy-mac#541 with #527's current head merged in.
maralcbr added a commit that referenced this pull request Sep 25, 2026
Pin a09ee0ca, the head of omacom/omarchy-mac integ/boot-set-1 (#547): quattro-upstream with #527, #540, #545 and #541 merged. The package then carries the Apple provisioning entrypoints from #545 and can publish before those PRs merge.
@spencerbull

Copy link
Copy Markdown
Contributor

Tested this patch on a Dell XPS 13 DX13260 on Panther Lake (DMI SKU 0E54, audio SSID 1028:0e54, BIOS 1.5.2), starting from a clean Omarchy 4.0.4 stable install. Testing was done by Claude Opus 5.5 in Claude Code at @spencerbull's request; no second-opinion review ran on this report.

Result: the patch fixes speaker-ID selection on this machine, but it only restores sound together with linux-firmware >= 20260910.

What was built

linux-omarchy from master at 83f85a4 (7.2.5-6) plus this pull request's 0518-spi-cs42l43-speaker-id-gpios.patch, byte-identical to the attachment on kernel bug 221956. It applies at --fuzz=0 on 7.2.5-6, so the only thing this branch needs is a rebase onto the current pkgrel. Built with bin/build --package linux-omarchy --mirror edge as 7.2.5-6.1.

Why this machine picked the wrong speaker ID

The ACPI description is the incomplete one the patch describes. In SSDT32, spk-id-gpios is (AF01, 0, 0, 0), pointing at pin index 0 only, while AF01's GpioIo resource on \_SB.GPI4 lists two pins, 2 and 3 (GPP_B_2, GPP_B_3). Both pads read high. The stock driver reads only pin 2 and asks for spkid1. The patched driver reads both pins and asks for spkid3. On this unit the result is 3 either way round, so the open question about GPIO bit order doesn't change it.

Results

The speaker-ID choice was made visible with options spi_cs42l43 dyndbg=+p and options snd_soc_cs35l56 dyndbg=+p, removed after testing.

Kernel Firmware Speaker ID Result
stock 7.2.5-3 20260810-2 (stable) spkid1 silent, FIRMWARE_MISSING on both amps
stock 7.2.5-3 20260916-1 spkid1 audible, but loads the spkid1 tuning (SIDs 0x352102 / 0x352112)
patched 7.2.5-6.1 20260810-2 (stable) spkid3 silent, FIRMWARE_MISSING: stable has no 10280e54 files
patched 7.2.5-6.1 20260916-1 spkid3 audible, correct tuning

With the patch and 20260916 firmware:

cs42l43-spi cs42l43-spi: spk-id-gpios = 3 from 2 GPIOs
cs35l56 spi-cs35l56-right: DSP fwf name: 'b2-dsp1' system name: '10280e54-spkid3'
cs35l56 spi-cs35l56-left: DSP fwf name: 'b2-dsp1' system name: '10280e54-spkid3'
cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l56-b2-dsp1-misc-10280e54-spkid3-ampr.bin (v1): v4.5.9
cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l56-b2-dsp1-misc-10280e54-spkid3-ampl.bin (v1): v4.5.9
cs35l56 spi-cs35l56-right: Calibration applied
cs35l56 spi-cs35l56-right: Tuning PID: 0x112481, SID: 0x352312, TID: 0x342200
cs35l56 spi-cs35l56-left: Calibration applied
cs35l56 spi-cs35l56-left: Tuning PID: 0x112481, SID: 0x352302, TID: 0x342200

Playback was confirmed acoustically: a 440 Hz tone recorded through the internal microphones is about 51 dB stronger with the amplifiers on than with AMPL/AMPR Speaker muted (763,229× the neighbouring frequencies with the amps on, 1× muted). The owner also confirms audible speakers.

Without this patch, the 10280e54-spkid1/2/3 tunings are three distinct files, so a unit like this one plays on a tuning meant for different speaker parts. Units whose pin 2 reads low (IDs 0 and 2, like the one this pull request was written on) ask for spkid0, which no linux-firmware release contains, and stay silent even after the firmware update.

Firmware dependency

Stable and rc are still on the 7 Sep Arch snapshot (linux-firmware-cirrus 20260810-2), which has no 10280e54 files at all, so this patch alone does not restore sound on stable. The aliases arrived in Arch's 20260910; edge has 20260916-1. It has to arrive as the whole split set: linux-firmware-cirrus 20260916 takes over 190 files under sdca/1fa/ that stable's linux-firmware-other 20260810 still owns, and the linux-firmware meta package now also depends on the new -amd and -ti splits. Installing all 14 packages from edge in one pacman -U transaction worked cleanly.

Still broken on this machine: the panel (xe / Panel Replay)

This is not something this patch touches, but it is the other half of making this laptop usable, so the details are recorded here. With either kernel, the owner sees:

  • A laggy cursor.
  • A different tone on the right third of the screen. A screenshot taken at the same time shows no brightness step at the two-thirds line (column averages around x=1706 go 105.2 → 105.3 across a smooth gradient; the only sharp steps are the edges of an on-screen box). So the band is introduced after composition, in the display pipe or the panel, not by anything the compositor draws.

What the hardware and driver report:

  • Panel: Sharp LQ134Z1 (EDID SHP product 0x15dd), 2560×1600 at 120 Hz, 552.93 MHz pixel clock, sink OUI 00:22:b9.
  • Link: eDP, 4 lanes at 4.32 Gbps, pipe at 8 bpc (bpp=24), no DSC, no scaler. GPU 8086:b090, display SSID 1028:0e54.
  • Sink capabilities: PSR with Early Transport, Panel Replay, and Panel Replay Selective Update with Early Transport.
  • Default mode on both kernels: Panel Replay Selective Update enabled (Early Transport), with the sink in active, display from RFB.
  • Errors: on the stock 7.2.5-3 boot the sink reported PANEL-REPLAY RFB storage error (error status 0x2). On 7.2.5-6.1 the idle lock screen read 0x0 across 15 one-second samples, so the error shows up with screen activity rather than at rest.
  • Earlier measurement on this machine: through i915_edp_psr_debug, 0x00 (default) and 0x40 (Panel Replay off, which falls back to PSR2 selective update) both raised the RFB storage error. 0x43 (Panel Replay off, PSR1 forced) stayed clean.

This panel family is already known:

  • Upstream intel_quirks.c disables eDP Panel Replay for the XPS 14 DA14260 (1028:0db9) and XPS 16 DA16260 (1028:0dba), matched on the same sink OUI 00:22:b9.
  • linux-omarchy's 0401-drm-i915-psr-exit-panel-replay-for-alpm-lag.patch (QUIRK_PANEL_REPLAY_ALPM_CURSOR_LAG) applies its cursor-lag workaround to the same two SSIDs.

1028:0e54 is in neither list, so this machine gets neither treatment. A follow-up display quirk for 1028:0e54 is the likely fix, and it has to go further than the XPS 14/16 entry because disabling Panel Replay alone falls back to a PSR2 mode that fails the same way. That belongs in its own pull request, not this one.

🤖 Generated by Claude Opus 5.5 in Claude Code, posting from @spencerbull's account at their request.

@acidember

Copy link
Copy Markdown

Hi! I have a Dell XPS 13 DX13260, SKU 0E54, running linux-omarchy 7.2.5-3 and linux-firmware-cirrus 20260810-3. A diagnostic boot showed:

  • spk-id-gpios = 0; both amplifiers report Speaker ID = 0.
  • The driver selects 10280e54-spkid0. Requests for cirrus/cs35l56-b2-dsp1-misc-10280e54-spkid0.wmfw and matching left/right .bin files fail with -2 (file not found).
  • All packaged spkid1–3 aliases resolve successfully.
  • Both amps report FIRMWARE_MISSING, disabled calibration, and unavailable tuning IDs. The sound card registers without the separate -16 failure.
    Inspection of the ACPI AML found spk-id-gpios referencing AF01,0,0,0. The referenced GPIO resource contains GPI4 pins {2,3}, while the property selects only the first pin.
    This appears consistent with the two-pin issue addressed by upstream commit cad16d850e3759dd82cd869f739b56e9844a1fee, whose DMI match currently covers 0E53 only.
    Could you review whether this 0E54 mapping warrants extending that quirk, and whether you need any additional evidence? The zero reading alone doesn’t establish the correct physical speaker ID or tuning.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants