Repository navigation
[BUG] Dell XPS Plus 13 9320 - No sound card detected #4751
Description
Describe the bug
No sound card detected on a laptop - Dell XPS Plus 13 9320
System : Linux-6.6.7-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-1260P-with-glibc2.37
Packages :
sys-firmware/sof-firmware-2023.09.2::gentoo
sys-kernel/linux-firmware-20231030::gentoo
Since i use the module snd_sof_pci_intel_tgl on my laptop, the sound card is not detected anymore.
No PCH card from the command : cat /proc/asound/cards
Notice : using the snd_hda_intel module allow the sound card to be detected but no sound from the speakers. It is why i switched to snd_sof_pci_intel_tgl module.
To Reproduce
On a installing Gentoo
Even unloading and loading modules after boot :
modprobe -r snd_sof_pci_intel_tgl
modprobe snd_sof_pci_intel_tgl
Reproduction Rate
All the time
Expected behavior
The sound card PCH should be detected.
Impact
annoyance, showstopper
It is necessary for meeting.
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: 6.6.7-gentoo
- SOF: sys-firmware/sof-firmware-2023.09.2::gentoo
- Name of the topology file
- Topology: {FILE}
- Name of the platform(s) on which the bug is observed.
- Platform: Dell 9320
Screenshots or console output
cat /etc/conf.d/modules
```
modules="vhost_net sch_netem snd_hda_codec_realtek pinctrl_alderlake"
```
dmesg |egrep -i 'snd|sof'
```
[ 0.534228] software IO TLB: area num 16.
[ 66.040290] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 66.438936] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 66.438938] software IO TLB: mapped [mem 0x000000004e7a9000-0x00000000527a9000] (64MB)
[ 68.754344] usbserial: USB Serial support registered for funsoft
[ 3795.756695] snd_sof_pci_intel_tgl: unknown parameter 'index' ignored
[ 3795.757068] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 3795.759802] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 3795.760179] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops)
[ 3795.769586] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 3795.794031] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 3795.794038] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 3795.794053] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 0
[ 3795.794138] Loading firmware: intel/sof/sof-adl.ri
[ 3795.797115] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 3795.797119] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 3795.797145] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[ 3795.913685] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 3795.913693] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 3796.257001] usbcore: registered new interface driver snd-usb-audio
[ 4010.615880] snd_sof_pci_intel_tgl: unknown parameter 'index' ignored
[ 4010.629611] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 4010.629991] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops)
[ 4010.636255] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[ 4010.651347] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 4
[ 4010.651351] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[ 4010.651362] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 0
[ 4010.651430] Loading firmware: intel/sof/sof-adl.ri
[ 4010.652049] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 4010.652052] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 4010.652072] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[ 4010.769868] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[ 4010.769874] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[ 9889.435492] usb 3-3: Unable to submit urb #0: -19 at snd_usb_queue_pending_output_urbs
[ 9903.605694] usb 3-1.3.4: Unable to submit urb thesofproject/sof#2: -19 at snd_usb_queue_pending_output_urbs
```
Activity
plbossart commentedon Dec 18, 2023
can you check that your kernel configuration includes CONFIG_SND_SOC_INTEL_SKL_HDA_DSP_GENERIC_MACH=m
plbossart commentedon Dec 18, 2023
at any rate, there's no magic to be expected. The first order of business with speaker problems is to disable SOF
https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#disable-sof-on-pci-hdaudio-devices-to-test-audio-playback
plbossart commentedon Jan 3, 2024
I also don't get why the SOF driver is used since your have no DMICs. the SOF driver is only required of TGL/ADL IF you have SoundWire or DMICs.
I guess you must have selected the SOF driver manually with a kernel parameter?
ujfalusi commentedon Jan 8, 2024
@yesi, if the speaker is silent with the legacy HDA stack then it is likely not going to work with SOF stack either.
If you force to use SOF then in your machine it should be looking for the sof-hda-generic.tplg file (you don't have DMIC).
The card should be created...
You can try to enable dynamic debugging and provide full dmesg: https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#enable-dynamic-debug
to see why the card fails to bind.
Is this a first install on the laptop? Are you using
sys-kernel/gentoo-kernel-binor normal, custom compiled one? Without forcing SOF, what is detected?ujfalusi commentedon Jan 8, 2024
Hrm, does this laptop have SoundWire for Speaker and Headset?
The Raptor Lake variant have at least: https://wiki.debian.org/InstallingDebianOn/Dell/XPS%2013%209320%20%282023%29%20%28bookworm%29
It is certified for Ubuntu as well: https://ubuntu.com/certified/202112-29761
ujfalusi commentedon Jan 9, 2024
Yes, definitely SDW device:
The SKU should be supported since v5.16:
8f4fa45 ("ASoC: Intel: sof_sdw: Add support for SKU 0AF3 product")
ujfalusi commentedon Jan 9, 2024
The Gentoo-bin kernel works on my test TGL device out of box:
plbossart commentedon Feb 2, 2024
@yesi this is trending to be closed - no input provided since December 18 and counter-example that this device is supported by SOF.
yesi commentedon Feb 7, 2024
Hi,
Sorry for the late answer.
I finally get it work with the SOF driver , but neither with HDA, after enabling different modules to build them manually.
The SOF debug mode helped me a lot to find the lack modules and its dependencies.
The choice to use SOF is to see whether it can work when it failed with HDA.
I think it should work with HDA module (i read in different forums) but i can not get the dependencies to do it work.
So right now, i stay with the SOF module. :-)
We can close this topic.
Thanks a lot for your time.
ujfalusi commentedon Feb 7, 2024
@yesi, a Soundwire device will not work with HDA driver.
yesi commentedon Feb 13, 2024
It seems that laptop work with the HDA driver : returns from various forums, threads.
Previously, i did not have Soundwire module enabled when i played with HDA driver.