No sound after upgrade (dell xps)

Small note for people wondering why there is no sound coming.
Looks like if you’re using latest kernel, you’re doomed to see the errors similar to this:

Sep 13 11:55:09 splinter kernel: soundwire sdw-master-0-0: Program params failed: -22
Sep 13 11:55:09 splinter kernel:  SDW0-Playback-SimpleJack: ASoC: error at snd_soc_link_prepare on SDW0-Playback-SimpleJack: -22
Sep 13 11:55:09 splinter kernel: sdw_deprepare_stream: subdevice #0-Playback: inconsistent state state 1
Sep 13 11:55:09 splinter kernel: soundwire sdw-master-0-0: Program transport params failed: -22
Sep 13 11:55:09 splinter kernel: soundwire sdw-master-0-0: Program params failed: -22
Sep 13 11:55:09 splinter kernel:  SDW0-Playback-SimpleJack: ASoC: error at snd_soc_link_prepare on SDW0-Playback-SimpleJack: -22
Sep 13 11:55:09 splinter kernel: sdw_deprepare_stream: subdevice #0-Playback: inconsistent state state 1

And as a result, no sound device will be available on your system.

I had to revert to previous generation instead of pinning nixpkgs to an older commit (thanks to the mythical nvidia build issues on mismatching kernel/driver versions). But you can try reverting to a previous commit.

References:

1 Like

Small update; since it’s not included yet in the nixpkgs kernel, I rebuilt the kernel with the patch applied for now. Works OK.

2 Likes

Thank you for this! This fixed audio for my dell xps 9320.

Nice to hear!

I suspect the issue will be fully gone with new version, once this PR reaches nixos-24.05 channel (tracker) since the original fix has now including 6.11 label, but we’ll see.

Looks like this is now live. I was able to use the latest kernel without the patch and have sound again.
As a bonus my headphone jack now finally senses when headphones are plugged in, and doesn’t just assume they’re always plugged in. This is on a Dell Latitude 9330.

Thank you for this interim fix gurkan!

1 Like