You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Failed to load sound driver on Latitude 7320 Detachable #3161
Describe the bug
Sound driver seems to fail to load properly on Dell Latitude 7320 Detachable (see hardware probe here https://linux-hardware.org/?probe=21c50317b2) and therefore sound is not available at the device on linux.
Even though the sound adapter (hardware ID: 8086:a0c8) seems to be supported by the linux kernel the device does not work. Browsing on the internet this issue seems to happen on all Dell Latitude 7320 Detachable systems. I tested with kubuntu 21.04 with kernel 5.11.0-34-generic (however same issue occurs with latest Manjaro linux and kernels up to 5.14). Furthermore looking at dmesg I saw a lot of (thousands and millions) suppressed IRQ callbacks that keep the CPU busy (one core seems to be busy for about 50% because of that). Not loading the driver (via grub: snd_hda_intel.dmic_detect=0) the CPU issue is gone but of course then sound will be disabled.
To Reproduce
Run kubuntu 21.04 live image (sha256sum of ISO: e705e84ed8fa820f1b7f4d286d24e0eb97561a5b2d47421bf7ea0381103788b7) from USB stick
Reproduction Rate
Issue is reproducible all the time (also seems with other linux kernel versions and linux distros).
Expected behavior
Linux boots up and loads driver without issues. Sound is working properly and CPU usage is near 0.
Impact
Using linux without sound is annoying at the least but during home office makes it also useless during audio conferences (however video is also not working on the device but that's another issue because there exists not webcam driver for this device yet). ;-)
Docking station with SSD for linux installation was attached during HW probe (however issue also occurs when booting from kubuntu 21.04 live USB stick)
changed the title [-][BUG] Failed to load sound driver in Latitude 7320 Detachable [/-][+][BUG] Failed to load sound driver on Latitude 7320 Detachable [/+]on Sep 15, 2021
@prof-dr-pepper can you provide the results of 'alsa-info' please. Looks like you have a SoundWire device that is not known to us. It's usually a minor SKU value that we need to add, or that was added in more recent kernels.
Thanks @prof-dr-pepper. I can see this: System SKU: 0A45, which is unfortunately a device we haven't seen before. I'll contact Dell and ask for details.
Let me know if there is anything I can help with. I am software developer myself (not a kernel developer, but at least fluent in C/C++). ;-)
I will take you up on your offer, given that I don't have access to the hardware, we have to rely on the community for feedback. The main ask is to be able to recompile your own kernel, using our latest development Git tree. we may also try with linux-stable and patches. Thanks!
Sure. So I'll try this kernel https://github.com/thesofproject/linux but which branch? Normally I would assume "master" but in this case it looks more like "topic/sof-dev". So "topic/sof-dev"?
yes. topic/sof-dev, with possibly a PR test before we merge to topic/sof-dev. we also generate our own configs with https://github.com/thesofproject/kconfig, specifically kconfig-sof-default.sh to only compile the minimum amount of code for audio tests.
@prof-dr-pepper I was talking about a future PR, when I have the information needed to create it.
Looks like your build does not use SOF, so something is missing in your config somehow. only HDMI is reported in your results. You should have the module snd-sof-pci-intel-tgl loaded.
here's my local config (a bit behind sof-dev but that should be fine with make olddefconfig):
Activity
[-][BUG][/-][+][BUG] Failed to load sound driver in Latitude 7320 Detachable [/+][-][BUG] Failed to load sound driver in Latitude 7320 Detachable [/-][+][BUG] Failed to load sound driver on Latitude 7320 Detachable [/+]plbossart commentedon Sep 15, 2021
@prof-dr-pepper can you provide the results of 'alsa-info' please. Looks like you have a SoundWire device that is not known to us. It's usually a minor SKU value that we need to add, or that was added in more recent kernels.
prof-dr-pepper commentedon Sep 16, 2021
I added the alsa-info to the bug. You can find it here: http://alsa-project.org/db/?f=e7ce23315aee536587174f7f58f79812c1166d1a
Thanks for helping :)
plbossart commentedon Sep 16, 2021
Thanks @prof-dr-pepper. I can see this: System SKU: 0A45, which is unfortunately a device we haven't seen before. I'll contact Dell and ask for details.
prof-dr-pepper commentedon Sep 16, 2021
Let me know if there is anything I can help with. I am software developer myself (not a kernel developer, but at least fluent in C/C++). ;-)
plbossart commentedon Sep 16, 2021
I will take you up on your offer, given that I don't have access to the hardware, we have to rely on the community for feedback. The main ask is to be able to recompile your own kernel, using our latest development Git tree. we may also try with linux-stable and patches. Thanks!
prof-dr-pepper commentedon Sep 16, 2021
Sure. So I'll try this kernel https://github.com/thesofproject/linux but which branch? Normally I would assume "master" but in this case it looks more like "topic/sof-dev". So "topic/sof-dev"?
plbossart commentedon Sep 16, 2021
yes. topic/sof-dev, with possibly a PR test before we merge to topic/sof-dev. we also generate our own configs with https://github.com/thesofproject/kconfig, specifically kconfig-sof-default.sh to only compile the minimum amount of code for audio tests.
prof-dr-pepper commentedon Sep 16, 2021
Sorry, I didn't understand that. Which PR and which merge are you talking about?
Nevertheless I checked out the sof kernel and applied kconfig-sof-default.sh. I am compiling right now ;-)
prof-dr-pepper commentedon Sep 16, 2021
Compilation finished, I installed the kernel and ran alsa-info again: http://alsa-project.org/db/?f=0043c8bc949293f9717707d2c32ec19ee506b525
plbossart commentedon Sep 16, 2021
@prof-dr-pepper I was talking about a future PR, when I have the information needed to create it.
Looks like your build does not use SOF, so something is missing in your config somehow. only HDMI is reported in your results. You should have the module snd-sof-pci-intel-tgl loaded.
here's my local config (a bit behind sof-dev but that should be fine with make olddefconfig):
config.txt
prof-dr-pepper commentedon Sep 16, 2021
Ok, I tried again with your config. I hope this worked now. Here is the result: http://alsa-project.org/db/?f=8ec1e2d02b170f25c9068f45816d043fb80aa361
plbossart commentedon Sep 16, 2021
something's not going well, still HDMI card.
please add this to /etc/modprobe.d/alsa-base.conf
blacklist snd-hda-intel
also add if you want to see more, add this file
sof-dyndbg.conf.txt
to /etc/modprobe.d/sof-dyndbg.conf
and reboot
then check if you see any signs of SOF driver being loaded.
205 remaining items
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45
UPSTREAM: ASoC: Intel: soc-acpi: add missing quirk for TGL SDCA singl…
UPSTREAM: ASoC: Intel: sof_sdw: add missing quirk for Dell SKU 0A45