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?
18 remaining items
gbugs commentedon Nov 27, 2026
Some notes. PipeWire will be enabled when playing sounds on the console even after stopping per your command. If I mask PipeWire, I'll reboot without errors however I was unable to play sounds via alsa, pcm, or other attempts with mpv or mplayer. You're correct that the proper recording device in my case was hw:0,4, however no sound was successfully captured.
case_a_arecord_logs_workaround.txt
case_a_logs_at_boot-with_pipewire.txt
case_a_arecord_attempt.txt
case_a_logs_at_boot.txt
case_b_arecord_attempt.txt
case_b_logs_at_boot.txt
case_c_arecord_attempt.txt
case_c_logs_at_boot.txt
case_d_arecord_attempt.txt
case_d_logs_at_boot.txt
bardliao commentedon Nov 29, 2026
Thanks for the logs. Please apply one more debug patch on top of the previous three (v7.3.6 + p1/p2/p3): bank-switch-regdump.patch. It reads back the codec and controller registers before/after the bank switch and right after rt714 re-attaches.
No module parameters needed (remove the dbg_doais/dbg_dactqe lines, keep the dyndbg lines). Boot to console, then run:
arecord -D hw:0,4 -f S16_LE -r 48000 -c 2 -d 5 /tmp/t.wav
and share journalctl -k -b (unfiltered).
gbugs commentedon Nov 29, 2026
Hello Bard. Please see attached.
logs_at_boot.txt
logs_after_cmd.txt
bardliao commentedon Nov 30, 2026
Thanks @gbugs! The register dump shows that the bank switch itself works. Right after it, rt714 is still healthy and no audio data is on the bus yet. Shortly after that, rt714 resets and drops off the bus. Several driver steps run in that short window, including powering up the codec's mic function, and the log doesn't tell us which one causes the reset.
The attached ckpt-msleep-debug.patch (apply it on top of the previous 4 patches) adds a 100 ms pause after each of these steps and checks whether rt714 is still attached. The first checkpoint that prints *** LOST *** tells us which step causes the reset. Then we know where to dig: the bank switch, the codec power-up, or the data transfer.
Please run:
arecord -D hw:0,4 -f S16_LE -r 48000 -c 2 -d 5 /tmp/t.wav
journalctl -k -b -o short-monotonic > ckpt.log
and share ckpt.log. Thanks!
gbugs commentedon Nov 30, 2026
Thank you again for all your help and patience, Bard. Please see attached.
ckpt.log
bardliao commentedon Nov 30, 2026
Thanks @gbugs! To confirm that powering up the mic is what resets the codec, please apply skip-pde-debug.patch on top of the previous patches (including ckpt-msleep-debug). It skips the mic power-up write (PS0) by default, so the recording will probably be silent. That's expected. We only want to see whether rt714 stays attached.
Please run both cases in the same boot:
systemctl --user stop pipewire pipewire.socket wireplumber
Case 1: power-up skipped (default)
arecord -D hw:0,4 -f S16_LE -r 48000 -c 2 -d 5 /tmp/t1.wav
Case 2: power-up enabled again
echo N | sudo tee /sys/module/snd_soc_rt715_sdca/parameters/dbg_skip_pde
arecord -D hw:0,4 -f S16_LE -r 48000 -c 2 -d 5 /tmp/t2.wav
journalctl -k -b -o short-monotonic > skip-pde.log
and share skip-pde.log. Thanks!
gbugs commentedon Nov 30, 2026
Hi Bard:
Please see attached:
skip-pde.log
bardliao commentedon Dec 1, 2026
Thanks @gbugs, this confirms it.
With the mic power-up skipped (case 1), the whole capture path ran cleanly. The stream started, data flowed for the full 5 seconds, the stream stopped, and the link went back to sleep, with no errors at all. With the power-up enabled again in the same boot (case 2), rt714 dropped off the bus right after the power-up write, exactly as before.
So the SoundWire bus and the driver sequence are fine. The codec resets as soon as its microphone function is powered on. That points to a codec or platform issue, for example the power supply or the mic circuitry, rather than a kernel/SOF bug.
Could you check does the internal mic work on Windows on this machine with the current BIOS? A Windows installer/live USB is enough to check.
@thesofproject/realtek Could you take a look?
shumingfan commentedon Dec 1, 2026
@gbugs Please apply the following modification below.
After applying the change, please reproduce the issue and capture the log mentioned in #11514 (comment).
Also, please share the output of the following command:
$ alsa-info
gbugs commentedon Dec 1, 2026
Hi all. I'm feeling a bit under the weather but I'm happy to attempt to boot Windows when able. Just a reminder that this laptop (9315) shipped with Ubuntu pre-installed and my understanding is that it has minor hardware differences from other XPS 13's of its age. That said, I do think booting Windows would provide a good data point.
Applied @shumingfan's patch. Please see attached logs:
skip-pde.log
shumingfan commentedon Dec 2, 2026
@gbugs Thanks for the testing.
We are concerned that this may be a hardware issue, so testing with Windows would be a good way to investigate further.
Would you mind also providing the alsa-info output after completing the Windows testing?
gbugs commentedon Dec 3, 2026
Apologies for forgetting alsa-info. Please see attached:
alsa-info.txt
Also, I booted the latest version of Windows 11. No sound input or output hardware was detected. As another point, no network hardware was detected either, however my network functions properly in Linux.
shumingfan commentedon Dec 4, 2026
@gbugs
Could you update the drivers on the Dell website?
https://www.dell.com/support/product-details/zh-tw/product/xps-13-9315-laptop/drivers
After updating the drivers, please check whether the audio is working properly.
gbugs commentedon Dec 4, 2026
Hi @shumingfan, absolutely. Apologies for the oversight. I'll download the drivers ahead of time and reimage. After testing I'll report back.
gbugs commentedon Dec 4, 2026
Reinstalled Windows and installed the Realtek drivers (Realtek High Definition Audio Driver) from Dell's site. The laptop speakers worked without issue. Unless I'm missing drivers (I certainly don't know Windows very well) recording was unavailable as no input hardware was found. I'm assuming the Realtek driver executable contains everything I need for sound and input capture however I'm happy to try other drivers/things if needed.