Skip to content

[BUG] No audio on Dell XPS Plus 13 9320 #3777

Closed

Description

@rhowe

Describe the bug
No audio devices detected on a Dell XPS Plus 13 9320

Linux 5.18.0, Debian unstable.

Tested with both Debian firmware-sof-signed package (2.1.1) and also using the sof 2.2 release installed manually (after removing the firmware-sof-signed package)

To Reproduce
Install Debian unstable

Observe no audio devices were detected

Reproduction Rate
All the time

Expected behavior
Audio devices should be detected

Impact
Showstopper

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: [not sure what to put here]
  3. Name of the platform(s) on which the bug is observed.
    • Platform: Dell 9320

Screenshots or console output
I'm not sure what exactly is relevant, but this from dmesg was all I could really find

[    5.688031] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    5.688730] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
...
[    5.784568] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    5.784633] sof-audio-pci-intel-tgl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[    5.784645] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    5.784758] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    5.784824] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.791593] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    5.847914] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[    5.848787] sof-audio-pci-intel-tgl 0000:00:1f.3: firmware: direct-loading firmware intel/sof/sof-adl.ri
[    5.848796] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:1:1-3964a
[    5.848797] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:21:0 Kernel ABI 3:19:1
[    5.848799] sof-audio-pci-intel-tgl 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    5.848801] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
...
[    7.961634] soundwire sdw:2:025d:1316:01: Probe not complete, timed out
[    7.961647] soundwire sdw:2:025d:1316:01: Update Slave status failed:-110
[    7.961683] soundwire sdw:1:025d:1316:01: Probe not complete, timed out
[    7.961686] soundwire sdw:1:025d:1316:01: Update Slave status failed:-110
[    7.961715] soundwire sdw:0:025d:0714:01: Probe not complete, timed out
[    7.961717] soundwire sdw:0:025d:0714:01: Update Slave status failed:-110

dmesg and alsa-info with sof 2.1.1 debian package:
dmesg-2.1.1.log
alsa-info-2.1.1.txt

dmesg and alsa-info with sof 2.2:
alsa-info-2.2.txt
dmesg-2.2.log

Activity

  1. added
    bug
    on Jul 21, 2022
  2. plbossart commented on Jul 21, 2022

    @plbossart
    Member

    We added support for this sku 0AF3

    	{
    		.callback = sof_sdw_quirk_cb,
    		.matches = {
    			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc"),
    			DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "0AF3"),
    		},
    		/* No Jack */
    		.driver_data = (void *)(SOF_SDW_TGL_HDMI |
    					SOF_SDW_FOUR_SPK),
    	},

    This was added in commit 8f4fa45 ("ASoC: Intel: sof_sdw: Add support for SKU 0AF3 product") and should be present in 5.18

    You probably have an invalid kernel configuration or something.

    if you want to debug, add this file
    sof-dyndbg.conf.txt
    as /etc/modprobe.d/sof-dyndbg.conf, reboot and attach the full dmesg log.

  3. rhowe commented on Jul 22, 2022

    @rhowe
    Author

    Nothing in the dmesg with debugging enabled looks too alarming except for the final message relating to sof

    [   10.749445] sof_sdw sof_sdw: snd_soc_register_card failed -517
    

    dmesg-2.1.1-debug.txt

  4. heftig commented on Jul 22, 2022

    @heftig

    Same issue here, same SKU but on Arch Linux.

    I had an aggressive power-saving udev config which set power/control to auto for almost all PCI devices. After removing this config, dmesg still shows registration errors but speakers and microphones work.

  5. plbossart commented on Jul 22, 2022

    @plbossart
    Member

    @rhowe it seems we have some sort of race condition here, you can see from the logs below that all devices fails to probe, but then are found

    [    8.277907] soundwire sdw:2:025d:1316:01: Probe not complete, timed out
    [    8.277916] soundwire sdw:2:025d:1316:01: Update Slave status failed:-110
    [    8.277922] soundwire_bus:sdw_handle_slave_status: soundwire sdw:2:025d:1316:01: sdw_handle_slave_status: signaling initialization completion for Slave 1
    [    8.277955] soundwire sdw:0:025d:0714:01: Probe not complete, timed out
    [    8.277957] soundwire sdw:0:025d:0714:01: Update Slave status failed:-110
    [    8.277960] soundwire_bus:sdw_handle_slave_status: soundwire sdw:0:025d:0714:01: sdw_handle_slave_status: signaling initialization completion for Slave 1
    [    8.277988] soundwire sdw:1:025d:1316:01: Probe not complete, timed out
    [    8.277990] soundwire sdw:1:025d:1316:01: Update Slave status failed:-110
    [    8.277992] soundwire_bus:sdw_handle_slave_status: soundwire sdw:1:025d:1316:01: sdw_handle_slave_status: signaling initialization completion for Slave 1
    

    We're completely removed this 'probe not complete' in the last bleeding edge kernel, it was a really bad idea in the first place.

    See https://lore.kernel.org/alsa-devel/[email protected]/, the patches will appear in 5.20 upstream in about 9 weeks.

    In the mean time, you can either
    a) apply these patches and try yourself
    b) manually increase the probe timeout in drivers/soundwire/bus.h
    bus.h:#define DEFAULT_PROBE_TIMEOUT 2000

    if you increase this to 10000 (10s) that should fix the issue.

  6. rhowe commented on Jul 22, 2022

    @rhowe
    Author

    It's about 20 years since I built a custom kernel, this should be fun

  7. heftig commented on Jul 23, 2022

    @heftig

    I had an aggressive power-saving udev config which set power/control to auto for almost all PCI devices. After removing this config, dmesg still shows registration errors but speakers and microphones work.

    I was mistaken about the trigger, as the issue reappeared on my next boot and then disappeared again a few reboots after I restored the config.

    a) apply these patches and try yourself

    I tried applying these patches to v5.18.13, but ran into an error:

    sound/soc/codecs/rt715-sdca-sdw.c: In function ‘rt715_sdca_sdw_probe’:
    sound/soc/codecs/rt715-sdca-sdw.c:185:14: error: ‘struct sdw_slave’ has no member named ‘ops’
      185 |         slave->ops = &rt715_sdca_slave_ops;
          |              ^~
    

    b) manually increase the probe timeout in drivers/soundwire/bus.h

    I'll try this now. I'll report back if I get another boot with missing audio (and udev stuck, which seems to coincide).

  8. rhowe commented on Jul 23, 2022

    @rhowe
    Author

    I just came to post about that build failure - I just deleted that line in the assumption that whatever rt715 is, I don't need it.

    However, I'm currently fighting Debian's undocumented process for building a signed kernel package so whilst I have a build, I haven't been able to try it out yet.

  9. madsl commented on Jul 23, 2022

    @madsl

    I just went straight for the sof-dev kernel from here, and that worked the first time I tried on my XPS 9320 some weeks ago. But, even with a kernel updated and built today, if I play anything on my speakers, the sound output will stop after one minute of playback (the media player is also unable to continue playing, the whole stream stops). And I can't get it back without rebooting. It's only when it's speakers, the DisplayPort output ports works.

    Anyone else experience this?

  10. madsl commented on Jul 25, 2022

    @madsl

    I just went straight for the sof-dev kernel from here, and that worked the first time I tried on my XPS 9320 some weeks ago. But, even with a kernel updated and built today, if I play anything on my speakers, the sound output will stop after one minute of playback (the media player is also unable to continue playing, the whole stream stops). And I can't get it back without rebooting. It's only when it's speakers, the DisplayPort output ports works.

    Anyone else experience this?

    It seems to be because of running powertop --auto-tune. If I don't do that during boot, it stays on.

    Shouldn't that work..?

    (The sound still works if I make powertop not enable Runtime PM on" PCI Device Intel Corporation Alder Lake PCH eSPI Controller" (/sys/bus/pci/devices/0000:00:1f.0/power/control))

  11. plbossart commented on Jul 25, 2022

    @plbossart
    Member

    a) apply these patches and try yourself

    I tried applying these patches to v5.18.13, but ran into an error:

    sound/soc/codecs/rt715-sdca-sdw.c: In function ‘rt715_sdca_sdw_probe’:
    sound/soc/codecs/rt715-sdca-sdw.c:185:14: error: ‘struct sdw_slave’ has no member named ‘ops’
      185 |         slave->ops = &rt715_sdca_slave_ops;
          |              ^~
    

    Sorry, you also need the patch 5118da4 ("ASoC: codecs: rt715-sdca: remove useless assignment of ops")

  12. plbossart commented on Jul 25, 2022

    @plbossart
    Member

    (The sound still works if I make powertop not enable Runtime PM on" PCI Device Intel Corporation Alder Lake PCH eSPI Controller" (/sys/bus/pci/devices/0000:00:1f.0/power/control))

    Separate issue @madsl, let's track this problem in #3783

  13. plbossart commented on Jul 25, 2022

    @plbossart
    Member

    It's about 20 years since I built a custom kernel, this should be fun

    it's like riding a bike, when you screw up it hurts just the same after 20 years.

  14. 266 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ADLCommunitySDWbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions