Repository navigation
Description
Describe the bug
Recently my Dell XPS 13 9315 laptop no longer plays sound from the built-in speakers. Given I'm running Arch Linux, I'm often a beta tester for the rest of the world. It also means I get quite recent kernels and sof packages. Unfortunately I cannot pinpoint when I started having issues though it may well have been a kernel in the past month or so, a recent Dell BIOS upgrade to 1.41.0, or newer sof packages (sof-firmware 2026.09.2-1, sof-tools 2026.09.2-1)
I can workaround the issue with: sudo modprobe -r snd_sof_pci_intel_tgl && sudo modprobe snd_sof_pci_intel_tgl
My XPS 13 9315 differs ever so slightly from similar Dell models. The XPS 13 9315 shipped with Ubuntu pre-installed and had minor differences in hardware.
To Reproduce
Reboot / cold power on
Reproduction Rate
Always
Expected behavior
Sweet, built-in speaker jams.
Impact
Annoyance given the workaround is simple. It's possible I'm seeing this issue given the recent vintage of my software or the fact the 9315 is a bit different.
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: 7.3.5-arch1-1 (and others per 30~ days)
- SOF: sof-firmware 2026.09.2-1
- Name of the topology file
- Topology: unsure
- Name of the platform(s) on which the bug is observed.
- Platform: Arch Linux
Screenshots or console output
Please see attached. Goodies include:
Nov 21 10:00:43 xps kernel: rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
Nov 21 10:00:43 xps kernel: rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
..
Nov 21 10:00:51 xps kernel: soundwire sdw-master-0-3: trf on Slave 6 failed:-5 write addr 45 count 1
Nov 21 10:00:51 xps kernel: rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_SYSTEMCTRL write failed:-5
Nov 21 10:00:51 xps kernel: rt715-sdca sdw:0:3:025d:0714:01: clock stop prepare failed:-5
Nov 21 10:00:51 xps kernel: soundwire_intel soundwire_intel.link.3: prepare clock stop failed -5
Nov 21 10:00:51 xps kernel: soundwire_intel soundwire_intel.link.3: intel_stop_bus: cannot stop clock: -5
Nov 21 10:00:51 xps kernel: rt715-sdca sdw:0:3:025d:0714:01: PARITY error detected before INT mask is enabled
...
Please also include the relevant sections from the firmware log and kernel log in the report (and attach the full logs for complete reference). Kernel log is taken from dmesg and firmware log from sof-logger. See https://thesofproject.github.io/latest/developer_guides/debugability/logger/index.html
Activity
gbugs commentedon Nov 21, 2026
lgirdwood commentedon Nov 22, 2026
Adding @thesofproject/realtek and @shumingfan - This is alderlake IIUC so I cant think of anything that would have changed here @bardliao @ujfalusi around soundwire clock ?
gbugs commentedon Nov 22, 2026
Thanks. I can confirm this is indeed Alder Lake, specifically "12th Gen Intel(R) Core(TM) i5-1230U". While loading/unloading snd_sof_pci_intel_tgl does re-enable sound, sometimes it causes (or does not stop) massive log spamming that DoS's journald with messages like:
rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-5
rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -5
rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
soundwire sdw-master-0-3: trf on Slave 6 failed:-5 write addr 4d count 1
bardliao commentedon Nov 23, 2026
@gbugs The issue description says the built-in speakers have no output, but the dmesg shows the error on rt715 which is a mic. Can you check the mic also?
Please add
options soundwire-bus dyndbg=+pmf options snd-soc-sdw-utils dyndbg=+pmfto one of the .conf file in the/etc/modprobe.d/directory and share the full dmesg log.bardliao commentedon Nov 23, 2026
@lgirdwood It looks more like the rt715 codec is not attached.
bardliao commentedon Nov 23, 2026
@gbugs Could you also share the dmesg log after
sudo modprobe -r snd_sof_pci_intel_tgl && sudo modprobe snd_sof_pci_intel_tgl?bardliao commentedon Nov 23, 2026
@gbugs Another question, do you switch between Windows and Linux?
gbugs commentedon Nov 23, 2026
Thanks all. I do not dual boot Windows. I can also confirm the mic does not work. Here is dmesg (trimmed for Github) after running
sudo modprobe -r snd_sof_pci_intel_tgl && sudo modprobe snd_sof_pci_intel_tglwithout adding the module flags:[ 325.644597] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 325.644803] soundwire sdw-master-0-3: trf on Slave 6 failed:-5 write addr 4d count 1
[ 325.644806] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-5
[ 325.644808] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -5
[ 325.645202] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUSCLOCK_SCALE_B0 write failed:-61
[ 325.645204] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 325.645532] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
[ 325.645534] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 325.645836] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
[ 325.645838] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 325.646200] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUSCLOCK_SCALE_B0 write failed:-61
[ 325.885099] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
Per above, the spearkers work after reloading however the error messages continue. The mic now shows up in Gnome's settings, which is not true without reloading the module. The mic does not appear to work, however.
After a full power off/power on (not reboot) with "options soundwire-bus dyndbg=+pmf options snd-soc-sdw-utils dyndbg=+pmf" added as the only options under /etc/modprobe.d, here is dmesg without reloading the module:
[ 22.694854] soundwire_bus:sdw_slave_get_scale_index: rt715-sdca sdw:0:3:025d:0714:01: Configured bus base 1, scale 3, mclk 19200000, curr_freq 4800000
[ 22.695083] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUSCLOCK_SCALE_B0 write failed:-61
[ 22.695086] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 22.695089] soundwire_bus:sdw_handle_slave_status: rt715-sdca sdw:0:3:025d:0714:01: signaling initialization completion for Slave 6
[ 22.695225] soundwire_bus:sdw_handle_slave_status: rt715-sdca sdw:0:3:025d:0714:01: Slave 6 state check1: UNATTACHED, status was 1
[ 22.695229] soundwire_bus:sdw_modify_slave_status: rt715-sdca sdw:0:3:025d:0714:01: initializing enumeration and init completion for Slave 6
[ 22.695434] soundwire_bus:sdw_modify_slave_status: rt715-sdca sdw:0:3:025d:0714:01: signaling enumeration completion for Slave 6
[ 22.695437] soundwire_bus:sdw_slave_get_scale_index: rt715-sdca sdw:0:3:025d:0714:01: Configured bus base 1, scale 3, mclk 19200000, curr_freq 4800000
[ 22.695560] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
[ 22.695563] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 22.695566] soundwire_bus:sdw_handle_slave_status: rt715-sdca sdw:0:3:025d:0714:01: signaling initialization completion for Slave 6
[ 22.695945] soundwire_bus:sdw_handle_slave_status: rt715-sdca sdw:0:3:025d:0714:01: Slave 6 state check1: UNATTACHED, status was 1
[ 22.695949] soundwire_bus:sdw_modify_slave_status: rt715-sdca sdw:0:3:025d:0714:01: initializing enumeration and init completion for Slave 6
[ 22.696111] soundwire_bus:sdw_modify_slave_status: rt715-sdca sdw:0:3:025d:0714:01: signaling enumeration completion for Slave 6
[ 22.696114] soundwire_bus:sdw_slave_get_scale_index: rt715-sdca sdw:0:3:025d:0714:01: Configured bus base 1, scale 3, mclk 19200000, curr_freq 4800000
[ 22.696271] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
[ 22.696274] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 22.696277] soundwire_bus:sdw_handle_slave_status: rt715-sdca sdw:0:3:025d:0714:01: signaling initialization completion for Slave 6
[ 22.696547] soundwire_bus:sdw_handle_slave_status: rt715-sdca sdw:0:3:025d:0714:01: Slave 6 state check1: UNATTACHED, status was 1
[ 22.696551] soundwire_bus:sdw_modify_slave_status: rt715-sdca sdw:0:3:025d:0714:01: initializing enumeration and init completion for Slave 6
[ 22.696689] soundwire_bus:sdw_modify_slave_status: rt715-sdca sdw:0:3:025d:0714:01: signaling enumeration completion for Slave 6
[ 22.696692] soundwire_bus:sdw_slave_get_scale_index: rt715-sdca sdw:0:3:025d:0714:01: Configured bus base 1, scale 3, mclk 19200000, curr_freq 4800000
[ 22.696833] rt715-sdca sdw:0:3:025d:0714:01: SDW_SCP_BUS_CLOCK_BASE write failed:-61
[ 22.696837] rt715-sdca sdw:0:3:025d:0714:01: Slave 6 initialization failed: -61
[ 26.619204] soundwire_bus:sdw_bus_wait_for_clk_prep_deprep: soundwire sdw-master-0-3: clock stop prepare done slave:15
After removing/re-adding the module:
[ 106.548256] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.548262] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.548423] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.548685] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.548689] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.548756] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.549051] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.549056] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.549120] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.551234] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.551244] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.551316] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.551560] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.551563] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.551631] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.551900] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.551903] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.551978] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.552247] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.552250] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.552383] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.552636] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.552639] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.552823] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.553079] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.553083] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.553152] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.553407] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.553409] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.553547] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.553802] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.553805] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.553902] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.554136] soundwire sdw-master-0-3: trf on Slave 0 failed:-5 read addr 50 count 6
[ 106.554138] soundwire sdw-master-0-3: DEVID read fail:-5
[ 106.554500] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
[ 106.763325] soundwire_bus:sdw_handle_slave_status: soundwire sdw-master-0-3: Slave attached, programming device number
Thanks very much!
bardliao commentedon Nov 23, 2026
@gbugs Can you attach the full dmesg log after reboot? From the limited log you shared, I am afraid that your mic codec (rt715) is broken physically. And I don't see any log about the amp (rt1316). I am more interested in the amp's log, but you didn't share any.
gbugs commentedon Nov 23, 2026
Apologies, I'd run into some github attachment issues. Also, dmesg truncates after a small number of lines.
Some interesting observations. I booted straight into a console, and observed no issues. Here's dmesg after cold booting into console:
snd_cold_boot.txt
However, after trying to play a file on the console, I immediately observed error messages. From
sudo journalctl -labandgrep -v NetworkManager snd_after_mpv.txt |grep -v iwlwifi |grep -v wpa_supp |grep -vi bluetooth |grep -v wlan0 > snd_after_mpv_nm.txtsnd_after_mpv_nm.txt
bardliao commentedon Nov 24, 2026
@gbugs That is interesting. Good news is that the rt714 codec is not likely broken because it can be attached. But, somehow it unattached immediately and that is the reason that you got the
-61errors.Can you apply below change and share the log and what happened with below change?
gbugs commentedon Nov 24, 2026
Thanks for all your help, Bard. My earlier message about dmesg was that as soon as I get errors, I overflow the dmesg buffer, overwriting important information. As a result I switched to using journalctl. If you have a preferred command line to sanitize journald logs I'd be happy to use it.
I booted this machine with different live distros and found some interesting results as well.
grep -v NetworkManager debian13_journalctl_lab_debian_live_cd.txt |grep -v iwlwifi |grep -v wpa_supp |grep -vi bluetooth |grep -v wlan0 > deb13_logs.txtdeb13_logs.txt
grep -v NetworkManager fedora45_live_journalctl_lab.txt |grep -v iwlwifi |grep -v wpa_supp |grep -vi bluetooth |grep -v wlan0 > fedora45_logs.txtfedora45_logs.txt
grep -v NetworkManager fedora42_journalctl_lab.txt |grep -v iwlwifi |grep -v wpa_supp |grep -vi bluetooth |grep -v wlan0 > fedora42_logs.txtfedora42_logs.txt
I'll look into applying the patch as well. I'll have to get refreshed on how to do so.
bardliao commentedon Nov 24, 2026
Sorry, my previous patch was wrong: it modified intel_ace2x.c which is only used by ACE2+ (LNL/PTL) platforms, while your Alder Lake uses intel.c. Please use the patch below instead. It removes DACTQE from the shim CTMCTL setting to see if the slave still goes UNATTACHED right after being attached. Please share the dmesg with dyndbg=+pmf enabled and tell us whether the -61 errors are gone.
Please keep the dyndbg options
options soundwire-bus dyndbg=+pmf, reboot, and share the full, unfiltered log (nogrep):Also, is it possible to roll back to previous BIOS version?
3 remaining items
bardliao commentedon Nov 25, 2026
@bardliao It doesn't look like related to sof firmware. Can you roll back to a relative old kernel like 6.18 and check if that is a kernel issue?
bardliao commentedon Nov 25, 2026
Sorry, I just realized Debian 13 live uses kernel 6.12.117 and Fedora 42 live uses kernel 6.14.0 and both have the same issue. So, it is not likely a kernel regression.
gbugs commentedon Nov 25, 2026
Hi Bard. Regardless, I just tried Arch's 6.7.1-arch1-1. Still no sound, unfortunately. When I boot to console I still have a usable dmesg, but attempting to play a sound gives me the usual flood of messages. Attaching dmesg when booting to console before attempting to play a sound:
dmesg_old_kernel_console_boot.txt
I'll be compiling your patches now.
gbugs commentedon Nov 25, 2026
Just a quick note that the patches haven't been applying cleanly on Arch's 7.3.6:
I've added the lines by hand, so hopefully I've done it properly. I'll update after compiling/rebooting.
bardliao commentedon Nov 25, 2026
@gbugs Can you add "options snd_sof_pci sof_pci_debug=1" in one of the .conf file in the /etc/modprobe.d/ directory to keep the audio PCI device powered and see if it helps?
gbugs commentedon Nov 25, 2026
Sure thing. Currently compiling your patches against Arch's 7.3.6. Right now, here are my module options:
gbugs commentedon Nov 25, 2026
Rebooted into Arch's latest kernel, not patched.
dmesg before sound:
dmesg_addl_debug.txt
dmesg after attempting to play a sound:
dmesg_addl_debug_after_sound.txt
bardliao commentedon Nov 25, 2026
Note that you have to write those options in different lines.
I.e.
Actually, below options are better.
gbugs commentedon Nov 25, 2026
Ah, thank you. Fixed. Attaching dmesg after booting to console both before and after attempting to play sound:
dmesg_before_sound.txt
dmesg_after_sound.txt
gbugs commentedon Nov 25, 2026
I've compiled Arch's latest kernel (7.3.6) with your patches:
dmesg_before_sound.txt
dmesg_after_sound.txt
gbugs commentedon Nov 25, 2026
Hopefully some more helpful information. I've booted the patched kernel directly to console leaving your module options in place. I'm now using
loggerto mark journald messages before and after playing a sound from the console:dmesg_before_sound.txt
journalctl_after_playing_sound.txt
bardliao commentedon Nov 26, 2026
@gbugs Thanks, the logs are very helpful.
Summary: At boot both codecs enumerate fine and the links enter clock stop normally. When PipeWire opens the SmartMic capture stream, link 3 does a bank switch (MCP_STAT 0x2 -> 0x103002). Right after that, rt714 keeps losing sync (attached/unattached toggling), which causes all the -61/-5 errors. The clock and frame shape don't change. The speaker link (link 2) has no errors. This looks like a link 3 signal timing issue that only shows up once rt714 starts sending data.
The attached patches are made against v7.3. Hope they can apply to your kernel.
1.ratelimit-status-debug.patch: the debug patch from my last comment, regenerated for 7.3.6.
2. ctmctl-doais-dactqe.patch: adds module params to change the link output timing, so you only need to build once.
3. stream-params-debug.patch : prints the frame shape and port parameters at stream prepare and bank switch.
Then do one boot per case below. Add the option to /etc/modprobe.d/sof-debug.conf, one option per line, keeping the existing dyndbg lines. Boot to console and run arecord -D hw:0, -f S16_LE -r 48000 -c 2 -d 5 /tmp/t.wav. Then share journalctl -k -b and tell us whether the errors appear and whether the recording works:
If possible, please also share one log from case A taken after the
modprobe -r/modprobeworkaround.gbugs commentedon Nov 26, 2026
Thank you Bard. All patches applied cleanly to Arch's 7.3.6. Compiling now, and I'll report back after running your tests.
Quick question, am I reading correctly that Case B should use the argument "dbg_dactqe=N"?
gbugs commentedon Nov 26, 2026
Compiled and rebooted into console with the patched kernel. Recording failed under all circumstances.
arecord_logs_case_a.txt
logs_case_a.txt
arecord_logs-workaround-case_a.txt
logs_case_a-workaround.txt
arecord_logs_case_b.txt
logs_case_b.txt
arecord_logs_case_c.txt
logs_case_c.txt
arecord_logs_case_d.txt
arecord_logs_case_d-workaround.txt
logs_case_d.txt
logs_case_d-workaround.txt
bardliao commentedon Nov 27, 2026
Thanks @gbugs! Unfortunately arecord never opened the device — the logs show Unknown PCM hw:0,, the placeholder needs to be replaced with the actual PCM number. Please run arecord -l and use the device number of the SmartMic (rt714) capture PCM (likely hw:0,4), e.g. arecord -D hw:0,4 -f S16_LE -r 48000 -c 2 -d 5 /tmp/t.wav. The module params did take effect (CTMCTL readback 0xb/0xa/0x1b/0x1a for A/B/C/D).
The case D workaround log is still useful: after the reload, a capture stream on link 3 started and rt714 lost sync right after the bank switch, same as before. So DOAIS=3 + DACTQE=0 does not fix it. Could you please redo cases A, B and C with the correct PCM number? Also, if PipeWire is running, please stop it first (systemctl --user stop pipewire pipewire.socket wireplumber) so that only arecord opens the stream.