Repository navigation
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels
Activity
bardliao commentedon May 27, 2026
@charleskeepax Could you take a look?
charleskeepax commentedon May 28, 2026
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
latin-1 commentedon May 28, 2026
@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
latin-1 commentedon May 28, 2026
By the way, on the vanilla 7.0.9 kernel,
intel/sof-ipc4-tplg/sof-ptl-rt722-4ch.tplgwas the one selected — not sure whether this detail is helpful.charleskeepax commentedon May 29, 2026
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:
In the log, and that supply is registered by the codec driver, but then all these messages:
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.
latin-1 commentedon May 29, 2026
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
latin-1 commentedon May 29, 2026
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.
charleskeepax commentedon May 29, 2026
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.
latin-1 commentedon May 29, 2026
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.
charleskeepax commentedon Jun 1, 2026
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.
latin-1 commentedon Jun 1, 2026
7.1-rc6 + two debug patches + cherry pick a5bec62:
dmesg-7.1-rc6-with-two-debug-patches-with-a5bec62.log
charleskeepax commentedon Jun 2, 2026
Ok that is definitely progress we can clearly see why this is failing:
DEBUG - cs42l43-1 PLLThat 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.
bardliao commentedon Jun 2, 2026
It is likely that cs42l43 is treated as an amp. The
is_ampflag will be false only if there is any other endpoint found in cs42l43.According to above information, SmartAmp seems be the only function that is reported in the DisCo table?
@latin-1 Does the device support headphone?
latin-1 commentedon Jun 2, 2026
@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.
53 remaining items
latin-1 commentedon Jul 29, 2026
@simma101 Perhaps you should first provide the output of
dmesgandacpidump, along with the version oflinux-firmwareyou’re using.simma101 commentedon Jul 29, 2026
Here's the dmesg output on 7.2-rc5. The entire acpidump is around 4mb, happy to upload it if needed.
bardliao commentedon Jul 30, 2026
@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 thealsa-infooutput, too. Also, can you try play music with theaplaycommand? I don't see issues with the limited dmesg log.dominikzogg commentedon Jul 31, 2026
Using Arch with linux-mainline (7.2-rc5) and the speaker work fine. Thank you!
(Yoga Slim 7 Ultra 14IPH11, Firmware: SHCN33WW)
simma101 commentedon Jul 31, 2026
@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
bardliao commentedon Aug 3, 2026
@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 reloadcharleskeepax commentedon Aug 4, 2026
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.
simma101 commentedon Aug 9, 2026
@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.
latin-1 commentedon Aug 13, 2026
@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:
charleskeepax commentedon Aug 14, 2026
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:
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.
latin-1 commentedon Aug 14, 2026
@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 suspendon every AMP suspend looks a bit suspicious. I’m not sure if this is actually a real issue, though.charleskeepax commentedon Aug 14, 2026
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?
latin-1 commentedon Aug 14, 2026
@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_statusreportssuspended.With dynamic debug enabled using:
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:
charleskeepax commentedon Aug 14, 2026
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.
latin-1 commentedon Aug 14, 2026
Setting both amplifiers'
power/controlvalues toondoes indeed avoid the issue. It also doesn’t seem to prevent other audio devices from entering thesuspendedstate.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.