Skip to content

Internal speaker does not work on Yoga Slim 7 Ultra 14IPH11 (83QK) #5786

Open

Description

@latin-1

Laptop: https://psref.lenovo.com/Product/Yoga/Yoga_Slim_7_Ultra_14IPH11
DSDT: dsdt.dsl.txt
Distro: Fedora 44
Kernel: 7.0.9 + #5773
dmesg: dmesg.log

It looks like the calibration is being applied correctly, but there's an issue with the tplg.

sof-audio-pci-intel-ptl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
sof-audio-pci-intel-ptl 0000:00:1f.3: enabling device (0000 -> 0002)
sof-audio-pci-intel-ptl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
sof-audio-pci-intel-ptl 0000:00:1f.3: bound 0000:00:02.0 (ops intel_audio_component_bind_ops [xe])
sof-audio-pci-intel-ptl 0000:00:1f.3: use msi interrupt mode
sof-audio-pci-intel-ptl 0000:00:1f.3: No SoundWire machine driver found for the ACPI-reported configuration:
sof-audio-pci-intel-ptl 0000:00:1f.3: link 3 mfg_id 0x01fa part_id 0x4243 version 0x3
sof-audio-pci-intel-ptl 0000:00:1f.3: Use SoundWire default machine driver with function topologies
sof-audio-pci-intel-ptl 0000:00:1f.3: hda codecs found, mask 4
sof-audio-pci-intel-ptl 0000:00:1f.3: NHLT device BT(0) detected, ssp_mask 0x4
sof-audio-pci-intel-ptl 0000:00:1f.3: BT link detected in NHLT tables: 0x4
sof-audio-pci-intel-ptl 0000:00:1f.3: DMICs detected in NHLT tables: 4
cs42l43 sdw:0:3:01fa:4243:01: supply vdd-p not found, using dummy regulator
cs42l43 sdw:0:3:01fa:4243:01: supply vdd-d not found, using dummy regulator
cs42l43 sdw:0:3:01fa:4243:01: supply vdd-a not found, using dummy regulator
cs42l43 sdw:0:3:01fa:4243:01: supply vdd-io not found, using dummy regulator
cs42l43 sdw:0:3:01fa:4243:01: supply vdd-cp not found, using dummy regulator
cs42l43 sdw:0:3:01fa:4243:01: devid: 0x042a43, rev: 0xa1, otp: 0x03
sof-audio-pci-intel-ptl 0000:00:1f.3: Firmware paths/files for ipc type 1:
sof-audio-pci-intel-ptl 0000:00:1f.3:  Firmware file:     intel/sof-ipc4/ptl/sof-ptl.ri
sof-audio-pci-intel-ptl 0000:00:1f.3:  Firmware lib path: intel/sof-ipc4-lib/ptl
sof-audio-pci-intel-ptl 0000:00:1f.3:  Topology file:     function topologies
cs42l43 sdw:0:3:01fa:4243:01: Slave 6 state check1: UNATTACHED, status was 1
sof-audio-pci-intel-ptl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.14.1.1
cs35l56 spi-cs35l56-left: supply VDD_P not found, using dummy regulator
cs35l56 spi-cs35l56-left: supply VDD_IO not found, using dummy regulator
cs35l56 spi-cs35l56-left: supply VDD_A not found, using dummy regulator
cs35l56 spi-cs35l56-left: Cirrus Logic CS35L57 Rev B2 OTP1 fw:4.2.1 (patched=0)
sof-audio-pci-intel-ptl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.14.1.1
cs35l56 spi-cs35l56-right: supply VDD_P not found, using dummy regulator
cs35l56 spi-cs35l56-right: supply VDD_IO not found, using dummy regulator
cs35l56 spi-cs35l56-right: supply VDD_A not found, using dummy regulator
sof-audio-pci-intel-ptl 0000:00:1f.3: Booted firmware version: 2.14.1.1
cs35l56 spi-cs35l56-right: Cirrus Logic CS35L57 Rev B2 OTP1 fw:4.2.1 (patched=0)
cs42l43-codec cs42l43-codec: supply vdd-amp not found, using dummy regulator
cs35l56 spi-cs35l56-left: supply VDD_B not found, using dummy regulator
cs35l56 spi-cs35l56-left: supply VDD_AMP not found, using dummy regulator
cs35l56 spi-cs35l56-right: supply VDD_B not found, using dummy regulator
cs35l56 spi-cs35l56-right: supply VDD_AMP not found, using dummy regulator
cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid1.wmfw: format 3 timestamp 0x683df784
cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid1.wmfw: Mon 02 Jun 2025 14:12:04 Central Daylight Time
sof-audio-pci-intel-ptl 0000:00:1f.3: Using function topologies instead intel/sof-ipc4-tplg/sof-ptl-dummy-4ch.tplg
sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology 0: intel/sof-ipc4-tplg/sof-ptl-dmic-4ch-id3.tplg
sof-audio-pci-intel-ptl 0000:00:1f.3: Topology: ABI 3:29:1 Kernel ABI 3:23:1
sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology 1: intel/sof-ipc4-tplg/sof-hdmi-pcm5-id5.tplg
sof-audio-pci-intel-ptl 0000:00:1f.3: Topology: ABI 3:29:1 Kernel ABI 3:23:1
sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid1.wmfw: format 3 timestamp 0x683df784
cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid1.wmfw: Mon 02 Jun 2025 14:12:04 Central Daylight Time
cs35l56 spi-cs35l56-left: DSP1: Firmware: 1a01d6 vendor: 0x2 v4.5.3, 43 algorithms
cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid1-ampl.bin (v1): v4.5.3
cs35l56 spi-cs35l56-left: DSP1: Misc: C:\Cirrus\Project\Lenovo_S7_Ultra\SmartPA_Tuning_Release\Version4.5\Lenovo_YS7_Ultra_AEC_Enable_57_B
cs35l56 spi-cs35l56-right: DSP1: Firmware: 1a01d6 vendor: 0x2 v4.5.3, 43 algorithms
cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid1-ampr.bin (v1): v4.5.3
cs35l56 spi-cs35l56-right: DSP1: Misc: C:\Cirrus\Project\Lenovo_S7_Ultra\SmartPA_Tuning_Release\Version4.5\Lenovo_YS7_Ultra_AEC_Enable_57_B
cs35l56 spi-cs35l56-left: Calibration applied
cs35l56 spi-cs35l56-left: Tuning PID: 0x3821, SID: 0x1, TID: 0xfd5f97
cs35l56 spi-cs35l56-right: Calibration applied
cs35l56 spi-cs35l56-right: Tuning PID: 0x3821, SID: 0x1, TID: 0xaf3bea
sof_sdw sof_sdw: cs42l43 speaker volume limit failed: -22
sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP1_OUT_P(*) -> Speaker
sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP1_OUT_N(*) -> Speaker
sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP2_OUT_P(*) -> Speaker
sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP2_OUT_N(*) -> Speaker
sof_sdw sof_sdw: cs42l43 speaker map addition failed: -19
sof_sdw sof_sdw: error -ENODEV: snd_soc_register_card failed -19

I noticed a series of patchsets shared by the community, though I haven't tried them yet. While some are clearly workarounds rather than proper fixes, they may still serve as a useful reference.
omacom/omarchy-pkgs#97

Activity

  1. bardliao commented on May 27, 2026

    @bardliao
    Collaborator

    @charleskeepax Could you take a look?

  2. charleskeepax commented on May 28, 2026

    @charleskeepax

    Apologies for the delay been on PTO, hmm.... does look a little like there might be something else wrong in the ACPI here. I notice from the log:

    acpi device:1f: SDCA function SmartAmp (type 1) at 0x1

    But there should be additional entries for the CODEC there. Could you add this attached additional debug patch and then grab a log both with and without #5773? I will see and I can see any clues in your ACPI dump.

    0001-Add-some-extra-debug.patch

  3. latin-1 commented on May 28, 2026

    @latin-1
    Author

    @charleskeepax

    Full ACPI dump: acpi.zip
    7.1-rc5 + debug.patch: dmesg-debug.log
    7.1-rc5 + debug.patch + a5bec62: dmesg-debug-with-a5bec62.log

  4. latin-1 commented on May 28, 2026

    @latin-1
    Author

    By the way, on the vanilla 7.0.9 kernel, intel/sof-ipc4-tplg/sof-ptl-rt722-4ch.tplg was the one selected — not sure whether this detail is helpful.

    sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology: intel/sof-ipc4-tplg/sof-ptl-rt722-4ch.tplg
    
  5. charleskeepax commented on May 29, 2026

    @charleskeepax

    Yeah the rt722 isn't real it is in the ACPI but doesn't really exist in the system, so we are trying to avoid it doing anything with that. Looking more closely I see this system is actually a pretty odd configuration (it doesn't use the headphones or mics on cs42l43 only the speakers and the cs35l56's are connected directly to the codec), so it does actually make sense that the system is only showing the one smart mic. What is a bit weird is I can see:

    cs42l43-codec cs42l43-codec: supply vdd-amp not found, using dummy regulator
    

    In the log, and that supply is registered by the codec driver, but then all these messages:

    cs35l56 spi-cs35l56-right: Tuning PID: 0x3821, SID: 0x1, TID: 0xaf3bea
    sof_sdw sof_sdw: cs42l43 speaker volume limit failed: -22
    sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP1_OUT_P(*) -> Speaker
    sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP1_OUT_N(*) -> Speaker
    sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP2_OUT_P(*) -> Speaker
    sof_sdw sof_sdw: ASoC: Failed to add route cs42l43 AMP2_OUT_N(*) -> Speaker
    sof_sdw sof_sdw: cs42l43 speaker map addition failed: -19
    

    Which all relate to not finding the widgets from the codec driver, I wonder if the codec driver probe defered and I think there are some issues with that at the moment. Could you try including a5bec62 and reverting a337552 ASoC: core: Complete support for card rebinding

    If that fails we might need to start putting some more debug in the codec driver to see why it is not registering the widgets.

  6. latin-1 commented on May 29, 2026

    @latin-1
    Author

    It doesn't look like commit a337552 can be reverted cleanly on top of 7.1-rc.5. So instead, I based my test on 7.0.9, cherry-picked a5bec62, and reverted a337552. The results look pretty much the same as the previous dmesg, with the same failure cause.

    dmesg-debug-7.0.9-with-a5bec62-revert-a337552.log

  7. latin-1 commented on May 29, 2026

    @latin-1
    Author

    I'm also curious why the patches provided in omacom/omarchy-pkgs#97 allow the speaker to work normally (or at least somewhat normally). A friend of mine tested it for me, and it does indeed get the speaker to produce sound.

  8. charleskeepax commented on May 29, 2026

    @charleskeepax

    Adding a hard match basically ignores the acpi (well parts of it) so it doesn't get confused by the broken bios but the trouble with that approach is we tend to get erroneous matches for other similar laptops and it needs done for each laptop. We are trying to move to a system of building the audio from the acpi so we only need to do stuff for the broken ones. I will create a debug patch tomorrow and share that, kinda at a bit of a loss as to what is happening there it is really weird. Seems to not be able to find parts of the codec but it looks like it added them. Please bear with me on this would be great to get to the bottom of it before others hit the same thing.

  9. latin-1 commented on May 29, 2026

    @latin-1
    Author

    Thanks for the explanation. I was just curious whether those patches might offer some inspiration. Hopefully tomorrow’s debug patch will help reveal where the issue is.

  10. charleskeepax commented on Jun 1, 2026

    @charleskeepax

    0001-Add-probe-and-widget-debug.patch

    Thanks, for bearing with me on this, lets try this. It puts some extra debug in probe to see if the codec probe is completing in time and when we fail to add the routes it dumps all the widget names so should let us see what the system thinks does exist. Hopefully this will give us some clues on why it can't find the widgets.

  11. latin-1 commented on Jun 1, 2026

    @latin-1
    Author

    7.1-rc6 + two debug patches + cherry pick a5bec62:

    dmesg-7.1-rc6-with-two-debug-patches-with-a5bec62.log

  12. charleskeepax commented on Jun 2, 2026

    @charleskeepax

    Ok that is definitely progress we can clearly see why this is failing:

    DEBUG - cs42l43-1 PLL

    That prefix is not what I was expecting, should be just "cs42l43". I think @bardliao had some patches that added numbers to the prefix in some cases, I guess that is perhaps mistakenly applying on bridge systems (amps being connected through the codec). Let me investigate a little and report back.

  13. bardliao commented on Jun 2, 2026

    @bardliao
    Collaborator

    It is likely that cs42l43 is treated as an amp. The is_amp flag will be false only if there is any other endpoint found in cs42l43.

    Slave: 0x1fa, 0x4243
    acpi device:1f: SDCA function 0
    acpi device:1f: SDCA function SmartAmp (type 1) at 0x1: 0x1fa, 0x4243
    

    According to above information, SmartAmp seems be the only function that is reported in the DisCo table?
    @latin-1 Does the device support headphone?

  14. latin-1 commented on Jun 2, 2026

    @latin-1
    Author

    @bardliao The device doesn't have a 3.5mm headphone jack. If you mean connecting headphones via USB-C, I haven't tried that yet.

  15. 53 remaining items

  16. latin-1 commented on Jul 29, 2026

    @latin-1
    Author

    @simma101 Perhaps you should first provide the output of dmesg and acpidump, along with the version of linux-firmware you’re using.

  17. simma101 commented on Jul 29, 2026

    @simma101

    @simma101 Perhaps you should first provide the output of dmesg and acpidump, along with the version of linux-firmware you’re using.

    Here's the dmesg output on 7.2-rc5. The entire acpidump is around 4mb, happy to upload it if needed.

    ~$ sudo dmesg | grep -iE "sof|topology|tplg|dapm|error.*sof|fail.*sof|cs42l43|cs35l56"
    [    4.302909] sof-audio-pci-intel-ptl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
    [    4.302922] sof-audio-pci-intel-ptl 0000:00:1f.3: enabling device (0000 -> 0002)
    [    4.353801] sof-audio-pci-intel-ptl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
    [    5.491424] sof-audio-pci-intel-ptl 0000:00:1f.3: bound 0000:00:02.0 (ops intel_audio_component_bind_ops [xe])
    [    5.498587] sof-audio-pci-intel-ptl 0000:00:1f.3: use msi interrupt mode
    [    5.516386] cs42l43 sdw:0:3:01fa:4243:01: supply vdd-p not found, using dummy regulator
    [    5.516420] cs42l43 sdw:0:3:01fa:4243:01: supply vdd-d not found, using dummy regulator
    [    5.516427] cs42l43 sdw:0:3:01fa:4243:01: supply vdd-a not found, using dummy regulator
    [    5.516432] cs42l43 sdw:0:3:01fa:4243:01: supply vdd-io not found, using dummy regulator
    [    5.516437] cs42l43 sdw:0:3:01fa:4243:01: supply vdd-cp not found, using dummy regulator
    [    5.519743] sof-audio-pci-intel-ptl 0000:00:1f.3: No SoundWire machine driver found for the ACPI-reported configuration:
    [    5.519749] sof-audio-pci-intel-ptl 0000:00:1f.3: link 3 mfg_id 0x01fa part_id 0x4243 version 0x3
    [    5.519755] sof-audio-pci-intel-ptl 0000:00:1f.3: Use SoundWire default machine driver with function topologies
    [    5.519757] sof-audio-pci-intel-ptl 0000:00:1f.3: hda codecs found, mask 4
    [    5.519758] sof-audio-pci-intel-ptl 0000:00:1f.3: NHLT device BT(0) detected, ssp_mask 0x4
    [    5.519759] sof-audio-pci-intel-ptl 0000:00:1f.3: BT link detected in NHLT tables: 0x4
    [    5.519761] sof-audio-pci-intel-ptl 0000:00:1f.3: DMICs detected in NHLT tables: 4
    [    5.521540] cs42l43 sdw:0:3:01fa:4243:01: devid: 0x042a43, rev: 0xa1, otp: 0x03
    [    5.522085] sof-audio-pci-intel-ptl 0000:00:1f.3: Firmware paths/files for ipc type 1:
    [    5.522088] sof-audio-pci-intel-ptl 0000:00:1f.3:  Firmware file:     intel/sof-ipc4/ptl/sof-ptl.ri
    [    5.522089] sof-audio-pci-intel-ptl 0000:00:1f.3:  Firmware lib path: intel/sof-ipc4-lib/ptl
    [    5.522090] sof-audio-pci-intel-ptl 0000:00:1f.3:  Topology file:     function topologies
    [    5.522409] sof-audio-pci-intel-ptl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.14.1.1
    [    5.594004] cs35l56 spi-cs35l56-left: supply VDD_P not found, using dummy regulator
    [    5.594051] cs35l56 spi-cs35l56-left: supply VDD_IO not found, using dummy regulator
    [    5.594063] cs35l56 spi-cs35l56-left: supply VDD_A not found, using dummy regulator
    [    5.635534] cs35l56 spi-cs35l56-left: Cirrus Logic CS35L57 Rev B2 OTP1 fw:4.2.1 (patched=0)
    [    5.676012] sof-audio-pci-intel-ptl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.14.1.1
    [    5.737063] cs35l56 spi-cs35l56-right: supply VDD_P not found, using dummy regulator
    [    5.737115] cs35l56 spi-cs35l56-right: supply VDD_IO not found, using dummy regulator
    [    5.737131] cs35l56 spi-cs35l56-right: supply VDD_A not found, using dummy regulator
    [    5.764330] sof-audio-pci-intel-ptl 0000:00:1f.3: Booted firmware version: 2.14.1.1
    [    5.807453] cs35l56 spi-cs35l56-right: Cirrus Logic CS35L57 Rev B2 OTP1 fw:4.2.1 (patched=0)
    [    5.934289] cs42l43-codec cs42l43-codec: supply vdd-amp not found, using dummy regulator
    [    5.935792] cs35l56 spi-cs35l56-left: supply VDD_B not found, using dummy regulator
    [    5.935806] cs35l56 spi-cs35l56-left: supply VDD_AMP not found, using dummy regulator
    [    5.940240] cs35l56 spi-cs35l56-right: supply VDD_B not found, using dummy regulator
    [    5.940247] cs35l56 spi-cs35l56-right: supply VDD_AMP not found, using dummy regulator
    [    5.994771] sof-audio-pci-intel-ptl 0000:00:1f.3: Using function topologies instead intel/sof-ipc4-tplg/sof-ptl-dummy-4ch.tplg
    [    5.994779] sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology 0: intel/sof-ipc4-tplg/sof-sdca-1amp-id2.tplg
    [    5.994821] sof-audio-pci-intel-ptl 0000:00:1f.3: Topology: ABI 3:29:1 Kernel ABI 3:23:1
    [    5.994931] cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid0.wmfw: format 3 timestamp 0x683df784
    [    5.994936] cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid0.wmfw: Mon 02 Jun 2025 14:12:04 Central Daylight Time
    [    5.995006] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
    [    5.995008] sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology 1: intel/sof-ipc4-tplg/sof-ptl-dmic-4ch-id3.tplg
    [    5.995035] sof-audio-pci-intel-ptl 0000:00:1f.3: Topology: ABI 3:29:1 Kernel ABI 3:23:1
    [    5.995137] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
    [    5.995139] sof-audio-pci-intel-ptl 0000:00:1f.3: loading topology 2: intel/sof-ipc4-tplg/sof-hdmi-pcm5-id5.tplg
    [    5.995156] sof-audio-pci-intel-ptl 0000:00:1f.3: Topology: ABI 3:29:1 Kernel ABI 3:23:1
    [    5.995300] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
    [    6.075604] cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid0.wmfw: format 3 timestamp 0x683df784
    [    6.075615] cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid0.wmfw: Mon 02 Jun 2025 14:12:04 Central Daylight Time
    [    6.682881] cs35l56 spi-cs35l56-right: DSP1: Firmware: 1a01d6 vendor: 0x2 v4.5.3, 43 algorithms
    [    7.119712] cs35l56 spi-cs35l56-right: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid0-ampr.bin (v1): v4.5.3
    [    7.119719] cs35l56 spi-cs35l56-right: DSP1: Misc: C:\Cirrus\Project\Lenovo_S7_Ultra\SmartPA_Tuning_Release\Version4.5\Lenovo_YS7_Ultra_AEC_Enable_57_B
    [    7.126217] cs35l56 spi-cs35l56-left: DSP1: Firmware: 1a01d6 vendor: 0x2 v4.5.3, 43 algorithms
    [    7.224137] cs35l56 spi-cs35l56-left: DSP1: cirrus/cs35l57-b2-dsp1-misc-17aa3821-spkid0-ampl.bin (v1): v4.5.3
    [    7.224146] cs35l56 spi-cs35l56-left: DSP1: Misc: C:\Cirrus\Project\Lenovo_S7_Ultra\SmartPA_Tuning_Release\Version4.5\Lenovo_YS7_Ultra_AEC_Enable_57_B
    [   11.193960] cs35l56 spi-cs35l56-right: Calibration applied
    [   11.214687] cs35l56 spi-cs35l56-left: Calibration applied
    [   11.219310] cs35l56 spi-cs35l56-right: Tuning PID: 0x3821, SID: 0x0, TID: 0x4f250f
    [   11.226961] cs35l56 spi-cs35l56-left: Tuning PID: 0x3821, SID: 0x0, TID: 0xac5fe8
    [   11.250504] sof_sdw sof_sdw: Setting CS42L43 Speaker volume limit to 128
    [   11.251040] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
    [   11.267805] input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input18
    [   11.268112] input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input19
    [   11.268408] input: sof-soundwire HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input20
    
  18. bardliao commented on Jul 30, 2026

    @bardliao
    Collaborator

    @simma101 No SoundWire machine driver found for the ACPI-reported configuration: is not an issue. That is expected for the PTL+ platforms. Please attach the full dmesg log and share the alsa-info output, too. Also, can you try play music with the aplay command? I don't see issues with the limited dmesg log.

  19. dominikzogg commented on Jul 31, 2026

    @dominikzogg

    Using Arch with linux-mainline (7.2-rc5) and the speaker work fine. Thank you!
    (Yoga Slim 7 Ultra 14IPH11, Firmware: SHCN33WW)

  20. simma101 commented on Jul 31, 2026

    @simma101

    @bardliao Here are the logs. When I try to play a file using aplay there is no sound, no errors are reported.

    The only sound output device showing in settings is "Dummy Output".

    dmesg.log

    alsa-info.txt

  21. bardliao commented on Aug 3, 2026

    @bardliao
    Collaborator

    @simma101 It looks more like an UCM issue. Can you update your UCM from https://github.com/alsa-project/alsa-ucm-conf/? Clone and copy the ucm2 folder to /usr/share/alsa/. If it doesn't work, please share the output of alsaucm reload

  22. charleskeepax commented on Aug 4, 2026

    @charleskeepax

    Yeah, there were two UCM fixes required for this laptop:

    alsa-project/alsa-ucm-conf@5d03f3c
    alsa-project/alsa-ucm-conf@9d62696

    Updating as Bard suggests should get you going.

  23. simma101 commented on Aug 9, 2026

    @simma101

    @bardliao @charleskeepax Thanks guys, that was the issue. It took a bit of mucking around to get ALSA updated on Ubuntu 24.04 so I could use the updated UCM config but it's all working now. Thanks for your help on this.

  24. latin-1 commented on Aug 13, 2026

    @latin-1
    Author

    @charleskeepax I’ve noticed that once the speaker enters the suspended state, there is an approximately 1-second delay before audio playback starts. I’m not sure whether other users have encountered a similar issue.

    Below is Codex’s analysis:

    Preliminary Analysis of CS35L56 Resume Latency Behind CS42L43 SPI Bridge

    The observed ~1 second delay before speaker audio starts after runtime suspend does not appear to come from the Intel SOF PCI device itself.

    Findings that are well supported by the measurements

    The audio PCI device is:

    0000:00:1f.3
    driver: sof-audio-pci-intel-ptl
    runtime state before playback: suspended
    PCI power state: D3hot
    

    Its runtime resume is fast:

    162.011053  RPM_RESUMING
    162.034911  RPM_ACTIVE
    

    This is about 23.9 ms, consistent with independently forcing the device active, which took about 25 ms. Therefore the ~1 second audible delay is not explained by the SOF PCI runtime-resume callback.

    Function-graph tracing shows that CS42L43 itself also resumes quickly:

    cs42l43_runtime_resume()                       ~17.6 ms
      cs42l43_wait_for_attach()                    <1 ms
      regcache_sync()                              ~15.1 ms
    

    The dominant cost is instead in the two CS35L56 amplifiers:

    cs35l56_runtime_resume_i2c_spi()
      cs35l56_runtime_resume_common()              ~571 ms / ~585 ms
        cs35l56_wait_for_firmware_boot()           ~18–25 ms
        regcache_sync()                            ~462–467 ms
    

    Both amplifiers also log:

    cs35l56 ...: Registers reset in suspend
    

    Therefore the driver detects that the amplifier registers were reset while suspended, marks the cache dirty, and performs a full regcache_sync() during resume. This cache restore is the main measured source of latency.

    The subsequent CS35L56 DAPM/play events are comparatively small, roughly 7–19 ms each, so they do not explain the large delay.

    The CS42L43 SPI bridge itself is also demonstrably expensive for these transfers. Function profiling for a single cold resume gives:

    cs42l43_transfer_one:
    94 calls total
    ~382 ms cumulative execution time
    ~4.1 ms average per SPI transfer
    

    SPI statistics independently match this exactly. For each CS35L56 device, one resume/play cycle adds:

    +41 messages
    +47 transfers
    +410 bytes
    

    For both amplifiers that is 94 transfers total, exactly matching the 94 cs42l43_transfer_one() calls.

    The transfer-size histogram shows that all new transfers are very small. Per amplifier:

    4–7 byte transfers:   +12
    8–15 byte transfers:  +35
    all larger buckets:   +0
    

    Thus the expensive resume workload is not a large firmware or register image transfer. It consists of roughly 47 very small SPI transfers per amplifier, each paying several milliseconds of CS42L43 bridge overhead.

    The SPI statistics are internally consistent with approximately:

    35 single-transfer register writes
    6 two-transfer register reads
    

    per amplifier.

    Likely interpretation / hypothesis

    The measurements strongly suggest that the latency is caused by the combination of:

    CS35L56 hibernate/reset
            ↓
    regcache marked dirty
            ↓
    full register-cache restore
            ↓
    many small SPI transactions
            ↓
    CS42L43 SoundWire-backed SPI bridge
            ↓
    ~4 ms overhead per SPI transfer
    

    This explains the measured ~460 ms regcache_sync() time and the ~570–585 ms CS35L56 runtime-resume critical path.

    There is also a possible additional optimization issue in REGCACHE_MAPLE.

    CS35L56 uses:

    reg_stride = 4
    cache_type = REGCACHE_MAPLE
    

    Inspection of the current Maple regcache implementation suggests that cache-entry adjacency is tested using register addresses differing by 1, rather than by map->reg_stride. If so, logically consecutive CS35L56 registers such as:

    0x4800, 0x4804, 0x4808, ...
    

    may not be grouped into contiguous cache blocks for raw/bulk synchronization.

    This would be consistent with the observed behavior: instead of a few larger SPI writes, resume produces about 35 individual ~10-byte writes per amplifier.

    This part is currently a hypothesis based on source inspection and the transfer statistics, not yet confirmed by an A/B test. A useful future experiment would be to temporarily change the CS35L56 SPI regmap cache from REGCACHE_MAPLE to REGCACHE_RBTREE, which is explicitly stride-aware, and compare:

    • regcache_sync() duration,
    • number of cs42l43_transfer_one() calls,
    • SPI transfer-size histogram,
    • total cold-start latency.

    In summary, the measurements already establish with high confidence that the large delay is in CS35L56 register-cache restoration over the CS42L43 SPI bridge, not in Intel SOF PCI resume, CS42L43 SoundWire attachment, or CS35L56 firmware boot. The remaining open question is whether the unusually fragmented register restore is inherent to the CS35L56 cache contents or is being worsened by REGCACHE_MAPLE handling of reg_stride = 4.

  25. charleskeepax commented on Aug 14, 2026

    @charleskeepax

    Yeah the soundwire->spi bridge is definitely going to be a bit of a bottle neck speed wise, so I definitely agree that is likely where most of the latency is coming from. The numbers are definitely a little higher than I would have expected, but not crazy. I fear there may not be significant room for improvement here. If maple tree isn't group the writes that would probably help a little, however, you say the transfers break down as follows:

    4–7 byte transfers: +12
    8–15 byte transfers: +35
    all larger buckets: +0

    A single register is 4 bytes, I have to assume that addresses are not included (also 4 bytes) as otherwise there should be any <7 byte transfers. Which means all the 8-15 byte transfers are 2-3 register transfers. But if maple tree won't send strided registers as a multi-register transfer all the transfers should be single register, ie. 4 bytes. Full disclosure I haven't tested this to see what happens, but I don't quite see how we get the transfer sizes you state if maple tree won't do multi-register transfers for strided regmaps.

  26. latin-1 commented on Aug 14, 2026

    @latin-1
    Author

    @charleskeepax To be fair, I’m not very familiar with this area, so the analysis above is mostly based on Codex’s assessment. One thing Codex did point out, though, is that seeing Registers reset in suspend on every AMP suspend looks a bit suspicious. I’m not sure if this is actually a real issue, though.

  27. charleskeepax commented on Aug 14, 2026

    @charleskeepax

    Fair enough, I will try to schedule some time to bring up a bridge setup and see how long I find the cache syncs to take and if the maple tree does group the transactions.

    When you say on every amp suspend, what do you actually mean by suspend there? Do you mean suspending/hibernating the laptop, or do you just mean when the amp powers down between playbacks?

  28. latin-1 commented on Aug 14, 2026

    @latin-1
    Author

    @charleskeepax

    All of these messages refer to the speaker/amplifier entering the suspended state due to there being no audio output, rather than to a system suspend. In other words, I am referring to the case where /sys/bus/pci/devices/0000:00:1f.3/power/runtime_status reports suspended.

    With dynamic debug enabled using:

    echo "file sound/soc/codecs/cs35l56-shared.c +p" > /sys/kernel/debug/dynamic_debug/control
    

    I can see the following messages every time the built-in speakers resume from the suspended state (for example, when audio playback starts) and then enter the suspended state again after playback stops:

    cs35l56 spi-cs35l56-right: Registers reset in suspend
    cs35l56 spi-cs35l56-left: Registers reset in suspend
    cs35l56 spi-cs35l56-left: Resumed
    cs35l56 spi-cs35l56-right: Resumed
    cs35l56 spi-cs35l56-right: Suspended: hibernate
    cs35l56 spi-cs35l56-left: Suspended: hibernate
    
  29. charleskeepax commented on Aug 14, 2026

    @charleskeepax

    Cool yeah that is the runtime suspend it seems the amps go into a low power hibernate mode when not in use on SPI, so the register state is indeed lost. So those messages are expected. We could try forcing the amps into runtime resume, I think if you find the appropriate sysfs entry (something like /sys/class/spi_master/spiX/power/), then set the control file to "on" that will force the amps to stay resumed. Not a great long term fix as it will cost power but might work as a work around for now and probably interesting to see if that completely resolves your issues.

  30. latin-1 commented on Aug 14, 2026

    @latin-1
    Author

    Setting both amplifiers' power/control values to on does indeed avoid the issue. It also doesn’t seem to prevent other audio devices from entering the suspended state.

    That said, since battery life is fairly important to me, I’d rather not make this change if I can avoid it. In comparison, the ~1-second delay is still barely acceptable.

    I’m also curious whether Windows has a similar issue, or if it uses a fundamentally different mechanism for handling this. If I have some time in the next couple of days, I might give it a try and see how it behaves.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions