Re: [PATCH] spi: cs42l43: Workaround for wrong speaker ID on Dell XPS 13 DX13260
From: Richard Fitzgerald
Date: Fri Sep 25 2026 - 12:25:24 EST
On 19/9/26 14:47, Richard Fitzgerald wrote:
Create an acpi_gpio_mapping so that speaker ID GPIOs can be read directlyDon't merge this.
from the ACPI GpioIo() instead of relying on the spk-id-gpios property to
have the correct number of pins. Change the reading loop to read each pin
one at a time until it reaches a pin index that doesn't exist.
This fixes problems on Dell XPS 13 DX13260:
I've heard there are plans to change the way speaker ID GPIOs are
defined in ACPI for future products. It will make them more compatible
with the "Linux way" and will work with the existing code in the cs42l43
and cs35l56 drivers. But would no longer be the "Windows way" so won't
work with the Windows-style method in this patch.
Which means this Dell model will likely be the only one with speaker ID
defined this particular way so will need to be a model-specific quirk.