Skip to contentSkip to conversation

ALSA: hda: cs35l41: Add DSD properties for ASUS UX582Z (1043:1a8f)

PATCH In review Slaton Christie 2 participants 3 messages Oct 30 – Nov 4 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda: cs35l41: Add DSD properties for ASUS UX582Z (1043:1a8f)

The ASUS Zenbook Pro Duo 15 UX582Z with PCI SSID 1043:1a8f has two CS35L41 amplifiers on SPI (CSC3551), but its BIOS provides no _DSD properties for them, so the amps fail to probe and the internal speakers are silent:

cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Failed property cirrus,dev-index: -22 cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: error -EINVAL: Platform not supported

The Realtek codec quirk for this SSID already exists (ALC245_FIXUP_CS35L41_SPI_2), and linux-firmware already ships the tuned cs35l41-dsp1-spk-prot-10431a8f-* files. Only the property table entry is missing.

Add an entry using the same configuration as the sibling UX582ZS (1043:12af): internal boost, CS/reset/speaker-ID GPIOs at indices 0/1/2, 1000nH inductor, 4500mA peak, 24uF capacitor.

Tested on a UX582Z running 7.3.0 (CachyOS) with the change built as a DKMS module: both amps probe, load the spk-prot firmware, apply the EFI calibration (R0=10611 / 10708) and the speakers play audio.

cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Firmware Loaded - Type: spk-prot, Gain: 17
cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A8F, BST: 0, VSPK: 0, CH: L, FW EN: 1, SPKID: 0 cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A8F, BST: 0, VSPK: 0, CH: R, FW EN: 1, SPKID: 0

The boost values are copied from the 1043:12af entry, not taken from ASUS or Cirrus documentation; confirmation of the boost parameters by Cirrus would be appreciated.

The diagnosis and the patch were prepared with the help of an AI assistant (Claude, Anthropic), from the dmesg output above and the existing 1043:12af table entry; testing was done on real hardware by the submitter.

---
 sound/hda/codecs/side-codecs/cs35l41_hda_property.c | 2 ++
 1 file changed, 2 insertions(+)
sound/hda/codecs/side-codecs/cs35l41_hda_property.c +2 -0
index c50c7e6..d5a9e1d 100644
@@ -107,6 +107,7 @@ static const struct cs35l41_config cs35l41_config_table[] = {
 	{ "10431863", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
 	{ "104318D3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
 	{ "10431A83", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
+	{ "10431A8F", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
 	{ "10431B93", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
 	{ "10431C9F", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
 	{ "10431CAF", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
@@ -566,6 +567,7 @@ static const struct cs35l41_prop_model cs35l41_prop_model_table[] = {
 	{ "CSC3551", "104318D3", generic_dsd_config },
 	{ "CSC3551", "10431A63", missing_speaker_id_gpio2 },
 	{ "CSC3551", "10431A83", generic_dsd_config },
+	{ "CSC3551", "10431A8F", generic_dsd_config },
 	{ "CSC3551", "10431B93", generic_dsd_config },
 	{ "CSC3551", "10431C9F", generic_dsd_config },
 	{ "CSC3551", "10431CAF", generic_dsd_config },
Signature · 1 line
2.43.0
#1 lore raw
Quoted 30 lines · Slaton Christie

The ASUS Zenbook Pro Duo 15 UX582Z with PCI SSID 1043:1a8f has two CS35L41 amplifiers on SPI (CSC3551), but its BIOS provides no _DSD properties for them, so the amps fail to probe and the internal speakers are silent:

cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Failed property cirrus,dev-index: -22 cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: error -EINVAL: Platform not supported

The Realtek codec quirk for this SSID already exists (ALC245_FIXUP_CS35L41_SPI_2), and linux-firmware already ships the tuned cs35l41-dsp1-spk-prot-10431a8f-* files. Only the property table entry is missing.

Add an entry using the same configuration as the sibling UX582ZS (1043:12af): internal boost, CS/reset/speaker-ID GPIOs at indices 0/1/2, 1000nH inductor, 4500mA peak, 24uF capacitor.

Tested on a UX582Z running 7.3.0 (CachyOS) with the change built as a DKMS module: both amps probe, load the spk-prot firmware, apply the EFI calibration (R0=10611 / 10708) and the speakers play audio.

cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: Firmware Loaded - Type: spk-prot, Gain: 17
cs35l41-hda spi1-CSC3551:00-cs35l41-hda.0: CS35L41 Bound - SSID: 10431A8F, BST: 0, VSPK: 0, CH: L, FW EN: 1, SPKID: 0 cs35l41-hda spi1-CSC3551:00-cs35l41-hda.1: CS35L41 Bound - SSID: 10431A8F, BST: 0, VSPK: 0, CH: R, FW EN: 1, SPKID: 0

The boost values are copied from the 1043:12af entry, not taken from ASUS or Cirrus documentation; confirmation of the boost parameters by Cirrus would be appreciated.

Quoted 6 lines

The diagnosis and the patch were prepared with the help of an AI assistant (Claude, Anthropic), from the dmesg output above and the existing 1043:12af table entry; testing was done on real hardware by the submitter.

You forgot Signed-off-by tag? Please resubmit with it.

thanks,

Takashi

A message that is not in the archive (sent off-list or not yet received): CAGFOuqziB0ofUbCeJB4y72gmpqPo_DG5c0LdedCbWMCpQZAG0g@mail.gmail.com

#3 lore raw

Please no attachment, no continue to thread, but just resubmit again the patch with the proper Signed-off-by from scratch.

thanks,

Takashi