-
Notifications
You must be signed in to change notification settings - Fork 349
Description
Describe the bug
On MTL laptop running Fedora 40 (most recent rawhide as of 06.02.2024) ) with the following topology:
- Link0: CS42L43 Jack and mics
- Link2: 2x CS35L56 Speaker (amps 3 and 4, right)
- Link3: 2x CS35L56 Speaker (amps 1 and 2, left)
occasionally the audio becomes strongly distorted (see attached files audio_example.tar.gz).
There is a chance this distortion will occur after waking the laptop from suspend, though it was observed to sometimes happen after restarting gnome sound settings GUI. It is possible that the sound can return to normal after some time or another wake/suspend cycle, but no clear pattern was observed.
The same distortion effect can be heard through both CS42L43 (jack) and CS35L56 (speakers). Also routing audio to bypass CS35L56's firmware has been tried, resulting in no change to distortion. This seems to suggest that the corruption happens before the sound is processed by CS42L43/CS35L56
To Reproduce
Try any audio output (tested mainly with gnome sound settings GUI) after waking the laptop from suspend.
Reproduction Rate
Should encounter the distortion after 5-10 attempts.
Expected behavior
No distortion should be present
Impact
Major
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel:
-
checkout v6.8-rc2 from https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next/
-
merge next-20240202
-
Apply two patches from attached archive
patches.tar.gz -
Apply ASoC: Intel: sof_sdw: starts non sdw BE id with the largest sdw BE id linux#4777
-
- SOF: package alsa-sof-firmware version 2023.12-3.cf40 (https://rpmfind.net/linux/RPM/fedora/devel/rawhide/x86_64/a/alsa-sof-firmware-2023.12-3.fc40.noarch.html)
- Kernel:
- Name of the topology file
- Topology: sof-mtl-cs42l43-l0-cs35l56-l23 (need to manually build and put in /lib/firmware/intel/sof-ace-tplg from topology2: cavs-cs42l43: Add topology for cs42l43/cs35l56 on MTL #8773)
- Name of the platform(s) on which the bug is observed.
- Platform: Meteor lake laptop
- ALSA UCM config
- Cirrus FW
- For cs42l43: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=efeb548d2a2b661b1bc58d393354b2225af67c3f
- For cs35l56: Attached archive
cs35l56_fw.tar.gz
Screenshots or console output
sdw_reg_dump.tar.gz