Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio driver fails to load on HP Omen 14, Intel Core 9 Ultra Meteor Lake #4880

Closed
CNG opened this issue Mar 27, 2024 · 40 comments · Fixed by #4882
Closed

Audio driver fails to load on HP Omen 14, Intel Core 9 Ultra Meteor Lake #4880

CNG opened this issue Mar 27, 2024 · 40 comments · Fixed by #4882

Comments

@CNG
Copy link

CNG commented Mar 27, 2024

Hello,

On my HP OMEN Transcend Gaming Laptop 14t-fb000 with an Intel Core 9 Ultra CPU I have a similar driver failure issue as #4879 but my topology file that's missing sof-mtl-rt711-2ch.tplg is slightly different than @moritz89's sof-mtl-rt711.tplg. I initially wrote this up on the Arch Linux forums at No builtin speaker audio, HP Omen 14, Intel Core 9 Ultra Meteor Lake but haven't gotten any feedback there. Hopefully this is a more appropriate place to seek guidance.

Environment

  • HP OMEN Transcend Gaming Laptop 14t-fb000
  • Intel Core 9 Ultra, Meteor Lake
  • Arch Linux 6.8.1-arch1-1

sudo dmesg | grep -E "sof-|snd"

[   15.565611] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   15.565642] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[   17.462418] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[   17.462667] snd_hda_intel 0000:01:00.1: Disabling MSI
[   17.462685] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[   17.481646] snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])
[   17.586793] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   17.586818] sof-audio-pci-intel-mtl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[   17.586845] sof-audio-pci-intel-mtl 0000:00:1f.3: enabling device (0000 -> 0002)
[   17.587091] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[   17.587169] sof-audio-pci-intel-mtl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   17.594214] sof-audio-pci-intel-mtl 0000:00:1f.3: use msi interrupt mode
[   17.605683] sof-audio-pci-intel-mtl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[   17.605687] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 4
[   17.608688] sof-audio-pci-intel-mtl 0000:00:1f.3: SOF firmware and/or topology file not found.
[   17.608776] sof-audio-pci-intel-mtl 0000:00:1f.3: Supported default profiles
[   17.608778] sof-audio-pci-intel-mtl 0000:00:1f.3: - ipc type 1 (Requested):
[   17.608780] sof-audio-pci-intel-mtl 0000:00:1f.3:  Firmware file: intel/sof-ipc4/mtl/sof-mtl.ri
[   17.608782] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file: intel/sof-ace-tplg/sof-mtl-rt711-2ch.tplg
[   17.608784] sof-audio-pci-intel-mtl 0000:00:1f.3: Check if you have 'sof-firmware' package installed.
[   17.608785] sof-audio-pci-intel-mtl 0000:00:1f.3: Optionally it can be manually downloaded from:
[   17.608787] sof-audio-pci-intel-mtl 0000:00:1f.3:    https://github.com/thesofproject/sof-bin/
[   17.610259] sof-audio-pci-intel-mtl 0000:00:1f.3: error: sof_probe_work failed err: -2

I do have Arch's latest sof-firmware and sof-bin packages installed. I also tried to locate that referenced sof-mtl-rt711-2ch.tplg topology file, but did not find it in the sof-bin repo. Indeed the only result on Google for that string is my forum post on this issue.

Per recommendation in #4879 I've saved sof-dyndbg.conf.txt to /etc/modprobe.d/sof-dyndbg.conf and generated alsa-info. I see the dmesg is at the bottom of that, but here is it filtered with the same pattern I had used above for completeness:

sudo dmesg | grep -E "sof-|snd"

[   13.825937] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   13.825959] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: ACPI reports 4 SDW Link devices
[   13.825966] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: Link 1 not selected in firmware
[   13.825970] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[   15.720671] snd_hda_intel 0000:01:00.1: enabling device (0000 -> 0002)
[   15.721137] snd_hda_intel 0000:01:00.1: Disabling MSI
[   15.721163] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[   15.739565] snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])
[   15.840049] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[   15.840076] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: ACPI reports 4 SDW Link devices
[   15.840085] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: Link 1 not selected in firmware
[   15.840088] sof-audio-pci-intel-mtl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[   15.840090] snd_sof_pci:sof_pci_probe: sof-audio-pci-intel-mtl 0000:00:1f.3: PCI DSP detected
[   15.840097] sof-audio-pci-intel-mtl 0000:00:1f.3: enabling device (0000 -> 0002)
[   15.840331] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[   15.840403] sof-audio-pci-intel-mtl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   15.847108] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: checking for capabilities at offset 0xc00
[   15.847115] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: found ML capability at 0xc00
[   15.847118] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: checking for capabilities at offset 0x500
[   15.847121] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: found DRSM capability at 0x500
[   15.847123] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: checking for capabilities at offset 0x700
[   15.847127] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: found SPIB capability at 0x700
[   15.847128] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: checking for capabilities at offset 0x800
[   15.847133] snd_sof_intel_hda_common:hda_dsp_ctrl_get_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: found DSP capability at 0x800
[   15.847374] snd_sof_intel_hda_common:hda_dsp_stream_init: sof-audio-pci-intel-mtl 0000:00:1f.3: hda global caps = 0x1009a01
[   15.847377] snd_sof_intel_hda_common:hda_dsp_stream_init: sof-audio-pci-intel-mtl 0000:00:1f.3: detected 9 playback and 10 capture streams
[   15.847483] sof-audio-pci-intel-mtl 0000:00:1f.3: use msi interrupt mode
[   15.847485] snd_sof_intel_hda_common:hda_dsp_probe: sof-audio-pci-intel-mtl 0000:00:1f.3: using IPC IRQ 201
[   15.847556] snd_sof:snd_sof_pci_update_bits_unlocked: sof-audio-pci-intel-mtl 0000:00:1f.3: Debug PCIR: 00000000 at  00000044
[   15.847560] snd_sof_intel_hda_common:hda_init_caps: sof-audio-pci-intel-mtl 0000:00:1f.3: PP capability, will probe DSP later.
[   15.850581] snd_sof:snd_sof_pci_update_bits_unlocked: sof-audio-pci-intel-mtl 0000:00:1f.3: Debug PCIR: 00000000 at  00000048
[   15.855057] snd_sof_intel_hda:hda_codec_detect_mask: sof-audio-pci-intel-mtl 0000:00:1f.3: codec_mask = 0x4
[   15.855073] snd_sof:snd_sof_pci_update_bits_unlocked: sof-audio-pci-intel-mtl 0000:00:1f.3: Debug PCIR: 00000000 at  00000048
[   15.855076] snd_sof:snd_sof_pci_update_bits_unlocked: sof-audio-pci-intel-mtl 0000:00:1f.3: Debug PCIW: 00000040 at  00000048
[   15.856414] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: ACPI reports 4 SDW Link devices
[   15.856421] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: Link 1 not selected in firmware
[   15.856845] snd_sof_intel_hda:hda_codec_probe: sof-audio-pci-intel-mtl 0000:00:1f.3: HDA codec #2 probed OK: response: 8086281d
[   15.857421] snd_sof_intel_hda:request_codec_module: snd_hda_codec_hdmi ehdaudio0D2: loading codec module: hdaudio:v8086281Dr00100000a01
[   15.858994] snd_intel_dspcfg:intel_nhlt_get_dmic_geo: sof-audio-pci-intel-mtl 0000:00:1f.3: found 1 format definitions
[   15.858996] snd_intel_dspcfg:intel_nhlt_get_dmic_geo: sof-audio-pci-intel-mtl 0000:00:1f.3: max channels found 2
[   15.858998] snd_intel_dspcfg:intel_nhlt_get_dmic_geo: sof-audio-pci-intel-mtl 0000:00:1f.3: Array with 2 dmics
[   15.858999] snd_intel_dspcfg:intel_nhlt_get_dmic_geo: sof-audio-pci-intel-mtl 0000:00:1f.3: dmic number 2 max_ch 2
[   15.859002] sof-audio-pci-intel-mtl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[   15.859004] snd_sof_intel_hda_common:hda_sdw_machine_select: sof-audio-pci-intel-mtl 0000:00:1f.3: SoundWire machine driver sof_sdw topology sof-mtl-rt711-2ch.tplg
[   15.859006] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 4
[   15.861894] snd_sof:sof_test_topology_file: sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to open topology file: intel/sof-ace-tplg/sof-mtl-rt711-2ch.tplg
[   15.861898] sof-audio-pci-intel-mtl 0000:00:1f.3: SOF firmware and/or topology file not found.
[   15.861951] sof-audio-pci-intel-mtl 0000:00:1f.3: Supported default profiles
[   15.861952] sof-audio-pci-intel-mtl 0000:00:1f.3: - ipc type 1 (Requested):
[   15.861954] sof-audio-pci-intel-mtl 0000:00:1f.3:  Firmware file: intel/sof-ipc4/mtl/sof-mtl.ri
[   15.861955] sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file: intel/sof-ace-tplg/sof-mtl-rt711-2ch.tplg
[   15.861957] sof-audio-pci-intel-mtl 0000:00:1f.3: Check if you have 'sof-firmware' package installed.
[   15.861958] sof-audio-pci-intel-mtl 0000:00:1f.3: Optionally it can be manually downloaded from:
[   15.861959] sof-audio-pci-intel-mtl 0000:00:1f.3:    https://github.com/thesofproject/sof-bin/
[   15.862046] snd_sof_intel_hda_common:mtl_enable_sdw_irq: sof-audio-pci-intel-mtl 0000:00:1f.3: FW Poll Status: reg[0x114c]=0x0 successful
[   15.864233] snd_sof_intel_hda_common:mtl_power_down_dsp: sof-audio-pci-intel-mtl 0000:00:1f.3: FW Poll Status: reg[0x1000]=0x0 successful
[   15.864344] sof-audio-pci-intel-mtl 0000:00:1f.3: error: sof_probe_work failed err: -2

Is there anything else I should provide?

Thank you!
Charlie

@moritz89
Copy link

The sof-mtl-rt711.tplg was only reported as it did not detect the actual hardware. It would be useful if you could find the actual chipset used by the laptop. Alternatively, try signing and booting the latest 6.9 kernel.

@charleskeepax
Copy link

This laptop is genuinely using Realtek parts:

[ 15.856504] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-0: SDW Slave Addr: 30025d071101
[ 15.856507] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-0: SDW Slave class_id 0x01, mfg_id 0x025d, part_id 0x0711, unique_id 0x0, version 0x3
[ 15.856686] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-3: SDW Slave Addr: 330025d131601
[ 15.856688] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-3: SDW Slave class_id 0x01, mfg_id 0x025d, part_id 0x1316, unique_id 0x0, version 0x3

So completely unrelated issues to the other ticket.

@plbossart
Copy link
Member

plbossart commented Mar 27, 2024

Yes, it's a different issue indeed. Thanks @CNG for the detailed reports, much appreciated.

[   15.856414] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: ACPI reports 4 SDW Link devices
[   15.856421] snd_intel_sdw_acpi:sdw_intel_scan_controller: acpi PRP00001:00: Link 1 not selected in firmware
[   15.856426] soundwire_intel:sdw_intel_probe_controller: acpi PRP00001:00: Creating 4 SDW Link devices
[   15.856504] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-0: SDW Slave Addr: 30025d071101
[   15.856507] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-0: SDW Slave class_id 0x01, mfg_id 0x025d, part_id 0x0711, unique_id 0x0, version 0x3
[   15.856686] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-3: SDW Slave Addr: 330025d131601
[   15.856688] soundwire_bus:sdw_extract_slave_id: soundwire sdw-master-0-3: SDW Slave class_id 0x01, mfg_id 0x025d, part_id 0x1316, unique_id 0x0, version 0x3
[   15.856845] snd_sof_intel_hda:hda_codec_probe: sof-audio-pci-intel-mtl 0000:00:1f.3: HDA codec #2 probed OK: response: 8086281d
[   15.856854] soundwire_intel:intel_link_process_wakeen_event: soundwire_intel soundwire_intel.link.0: SoundWire master 0 is disabled or not-started, ignoring
[   15.856864] soundwire_intel:intel_link_process_wakeen_event: soundwire_intel soundwire_intel.link.2: SoundWire master 2 is disabled or not-started, ignoring
[   15.856869] soundwire_intel:intel_link_process_wakeen_event: soundwire_intel soundwire_intel.link.3: SoundWire master 3 is disabled or not-started, ignoring

That's a new one, not sure what's going on, but unfortunately every new generation of HP devices seems to have issues with the ACPI definitions. We do have existing quirks for HP 'Omen' devices, but maybe they are not applied correctly. see e.g. #4088 for this sort of problems

can you provide the results of this command

cat /sys/bus/acpi/devices/*/adr | grep 025d

that will tell us what devices are listed in ACPI and then we can check the quirks. Thanks!

@CNG
Copy link
Author

CNG commented Mar 27, 2024

Sure thing!

# cat /sys/bus/acpi/devices/*/adr | grep 025d
0x000030025d071101
0x000330025d131601

@plbossart
Copy link
Member

ok so that's rt711-sdca on link0 and rt1316 on link3.

Of course we don't have this configuration with a single amp, we only have the configuration with two amps...

plbossart added a commit to plbossart/sound that referenced this issue Mar 27, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: thesofproject#4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart
Copy link
Member

@CNG can you apply this patch on your kernel and retest?
https://github.com/thesofproject/linux/commit/07e34a64c4e83dc10b1a74badf3dbb487378555c.patch

That should detect the right configuration, but we still need to provide an updated topology file and also figure out why the link0 is not started.

@plbossart
Copy link
Member

Also unzip this file generated from thesofproject/sof#8991
sof-mtl-rt711-l0-rt1316-l3-2ch.tplg.gz
and copy it in /lib/firmware/intel/sof-ace-tplg

Completely untested, just to try to see what happens.

@CNG
Copy link
Author

CNG commented Mar 27, 2024

Had to read a bit of documentation (not having patched kernel before), and waiting for the package to build now.

In case you get this before that's done, just to clarify, you'd like me to boot into the patched kernel and also add that topology file as part of the same test, or should I test each thing individually and together for 3 tests? For each test, would I be providing a new "alsa-info" or running other commands too? (I believe that alsa-info already contained the dmesg output, for example.)


For my own reference, here's how I'm attempting to patch and build the kernel. Hopefully I've read the docs correctly:

sudo pacman -S devtools pacman-contrib
pkgctl repo clone --protocol=https linux
cd linux

# Should have done this but I forgot: Change to custom name:
#   pkgbase=linux-custom
# Add to source array ~L34 just before "config" line:
#   https://github.com/thesofproject/linux/commit/07e34a64c4e83dc10b1a74badf3dbb487378555c.patch
# Update checksums
updpkgsums
# Missing dependencies
sudo pacman -S cpio pahole python-sphinx texlive-latexextra
makepkg
# To resolve ERROR: One or more PGP signatures could not be verified!
gpg --recv-keys 38DBBDC86092693E
gpg --recv-keys B8AC08600F108CDF

export MAKEFLAGS="-j$(nproc)"
time makepkg -s
# Verify output contains like:
#   Applying patch 07e34a64c4e83dc10b1a74badf3dbb487378555c.patch...
#   patching file sound/soc/intel/common/soc-acpi-intel-mtl-match.c
#   Hunk #1 succeeded at 288 (offset -8 lines).
#   Hunk #2 succeeded at 505 (offset -66 lines).
#   Hunk #3 succeeded at 610 (offset -86 lines).

# I think since I didn't change the name in pkgbase I can just
# install this over the top of my current kernel (risky?) and
# not need to change boot loader.
pacman -U linux-*.pkg.tar.zst

@plbossart
Copy link
Member

I am not familiar at all with Arch Linux and always sucked at pacman. Maybe @ujfalusi can help?

We have instructions here to build a kernel: https://thesofproject.github.io/latest/getting_started/setup_linux/prepare_build_environment.html
https://thesofproject.github.io/latest/getting_started/setup_linux/install_locally.html

@CNG
Copy link
Author

CNG commented Mar 27, 2024

Thanks, it actually just finished, so I'll attempt to boot into it now.

@CNG
Copy link
Author

CNG commented Mar 27, 2024

All right, let me know if these look right. No sound magically appeared of course, but hopefully something useful. Also note I still have that /etc/modprobe.d/sof-dyndbg.conf file present, let me know if I should test without that at any point.

  • alsa-info.sh output immediately after booting into patched kernel
  • alsa-info.sh output immediately after booting into patched kernel with topology file added (sudo cp -a sof-mtl-rt711-l0-rt1316-l3-2ch.tplg /lib/firmware/intel/sof-ace-tplg)

Also I see my kernel got bumped up from 6.8.1-arch1-1 to 6.8.2-arch1-1 in this process, in case it's relevant.

@plbossart
Copy link
Member

ok, that's good progress @CNG.
The two links do start and we can see the SoundWire devices attach on the bus. The hardware is correctly detected with the patch.

The remaining issue is the topology, we have an error

   13.498766] sof_sdw sof_sdw: ASoC: physical link dmic01 (id 2) not exist

That's not really surprising, I don't really understand all those DMIC options so not sure what the right settings should be.

Please try with this file where I used only the defaults
sof-mtl-rt711-l0-rt1316-l3-2ch.tplg.gz

@CNG
Copy link
Author

CNG commented Mar 27, 2024

All right, that produced:

  • alsa-info.sh output immediately after booting into patched kernel with "defaults" topology file sof-mtl-rt711-l0-rt1316-l3-2ch.tplg

@plbossart
Copy link
Member

ok, now the HDMI index is wrong... try this
sof-mtl-rt711-l0-rt1316-l3-2ch.tplg.gz

@CNG
Copy link
Author

CNG commented Mar 27, 2024

All right, well this is exciting, I've got new devices showing up now. First here is the output:

I don't think I can get sound on either the speakers or headphones. I tried playing music through both "Meteor Lake-P HD Audio Controller Speaker" and "Meteor Lake-P HD Audio Controller Headphones" using both profiles "Play HiFi quality Music" and "Pro Audio". I think I may hear a little periodic static clicks through the headphones, not sure if it is anything.

@plbossart
Copy link
Member

at this point the kernel is behaving as normal with a card created. the only things that could be problematic is userspace (UCM specifically). Let us know how this goes.

@CNG
Copy link
Author

CNG commented Mar 27, 2024

Strangely, when I opened pavucontrol and toggled the configuration for this card to "Pro Audio" and then back to "Play HiFi quality Music", it took a while for the Output Devices tab to reflect the change. Then I played with the volume slider on the "Speaker" item, and got some weird sound out of the speakers. It sounds like it's the normal pop sound effect of moving the volume slider but it's distorted and played at a long delay, my speakers were making noise for more than 30 seconds after I moved the slider. Then trying to play music with Spotify, it actually thinks it can play music... but I don't hear anything from the speaker except for the popping sound from moving the volume slider?

@CNG
Copy link
Author

CNG commented Mar 27, 2024

That UI is also reporting headphones are "plugged in" regardless of whether that's true, fwiw.

@plbossart
Copy link
Member

You probably want to check with a terminal if you can get a clear sine wave with
speaker-test -Dhw:0,2 -c2 -r48000 -FS16_LE -t sine

And then any sort of PCM .wav file with aplay -Dhw:0,2

userspace issues are not strictly speaking SOF driver issues, so they might need to be addressed somewhere else.

@plbossart
Copy link
Member

for the jack detection, i'd bet they used JD1 instead of the default JD2... That would require another kernel patch.

@CNG
Copy link
Author

CNG commented Mar 27, 2024

All right, well for the speaker-test, I assume this can't break because I was messing with the selections in pavucontrol... I'm currently getting:

$ speaker-test -Dhw:0,2 -c2 -r48000 -FS16_LE -t sine

speaker-test 1.2.11

Playback device is hw:0,2
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Playback open error: -2,No such file or directory

aplay -Dhw:0,2 ~/GDrive/Main/Resources/Sounds/howl.wav

aplay: main:850: audio open error: No such file or directory

@plbossart
Copy link
Member

try
speaker-test -Dhw:1,2 -c2 -r48000 -FS16_LE -t sine

@CNG
Copy link
Author

CNG commented Mar 27, 2024

speaker-test -Dhw:1,2 -c2 -r48000 -FS16_LE -t sine

speaker-test 1.2.11

Playback device is hw:1,2
Stream parameters are 48000Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
Playback open error: -16,Device or resource busy

@plbossart
Copy link
Member

that's because your UI is active or something in userspace is keeping the sound server alive.

kill all your apps and UIs, let the sound server suspend and then try with a terminal.

it's definitively hw:1,2 based on your alsa-info
card 1: sofsoundwire [sof-soundwire], device 2: Speaker (*) []

@CNG
Copy link
Author

CNG commented Mar 27, 2024

Ah you're right. Even with everything closed I was getting the "resource busy" message, but now after rebooting it works better. I am getting a sine sound out of both speakers when it says "Front Left", and getting no sound at all when it says "Front Right".

I'm not yet getting output testing aplay, looking into the parameters now.

$ aplay -Dhw:1,2 /home/cgorichanaz/GDrive/Main/Work/***.wav
Playing WAVE '/home/cgorichanaz/GDrive/Main/Work/***.wav' : Signed 16 bit Little Endian, Rate 16000 Hz, Mono
aplay: set_params:1398: Channels count non available

$ aplay -Dhw:1,2 /home/cgorichanaz/GDrive/Main/Resources/Sounds/howl.wav
Playing WAVE '/home/cgorichanaz/GDrive/Main/Resources/Sounds/howl.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono
aplay: set_params:1387: Sample format non available
Available formats:
- S16_LE
- S24_LE
- S32_LE

@plbossart
Copy link
Member

You probably have an invalid ALSA mixer configuration. Usually those are provided via UCM, the file alsa-ucm-conf/ucm2/sof-soundwire/rt1316.conf seems to select the correct mixers for the single amp case.

check if your distro has the latest stuff from UCM upstream:
https://github.com/alsa-project/alsa-ucm-conf.git

For the aplay test, you have to use a 48kHz 2ch file. We don't support mono or other rates.

plbossart added a commit to plbossart/sof that referenced this issue Mar 27, 2024
This device has RT711 on link0, RT1316 on link3 and 2 PCH-attached DMICs.

Add 3 configurations with no DMIC, 4 DMIC and 2 DMIC. For now no
support for -pdm1.

Link: thesofproject/linux#4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart
Copy link
Member

For the jack detection issue, please try this additional patch on top of what you already have: https://github.com/thesofproject/linux/commit/e1ff44dfed3e4c450b96617c9ba06dd1d76da703.patch

If this doesn't work, try with JD2_100K instead of JD2. We have no way of discovering how the jack detection is handled so a quirk is needed if the defaults don't work.

@CNG
Copy link
Author

CNG commented Mar 27, 2024

OK regarding the ALSA mixer config, I did note there are some changes between my local file and the Github version you linked. I did not yet trace how that file is getting to my system etc. but for now manually updated it:

cd /usr/share/alsa/ucm2/sof-soundwire                            
sudo mv rt1316.conf rt1316.conf.bak
sudo curl -LO https://github.com/alsa-project/alsa-ucm-conf/raw/master/ucm2/sof-soundwire/rt1316.conf

After rebooting, I reran the speaker-test and observed it seems to work correctly, playing only from either the right or left speaker at one time. I still can't play music or even get the normal responsive popping sound when adjusting volume in pavucontrol though.

I'll work on testing that second kernel patch next.


Small note, the file is provided by my distro's alsa-ucm-conf package, which is up to date with the latest tagged release, but the changes in question from 2 weeks ago are not in a new tag yet.

$ pacman -F rt1316.conf
extra/alsa-ucm-conf 1.2.11-1 [installed]
    usr/share/alsa/ucm2/sof-soundwire/rt1316.conf

@plbossart
Copy link
Member

The UCM update is indeed very recent, see the log below. It's not really surprising it's not in any distribution just yet. FWIW most distros don't have the latest stuff needed for Meteor Lake, it's still a rather new platform where the variations chosen by OEMs are not yet known.

commit 73981e94bb69da1be5b1e4a69ff99df28bcfb320 (HEAD -> master, origin/master, origin/HEAD)
Author: Jaroslav Kysela <perex@perex.cz>
Date:   Mon Mar 11 13:09:08 2024 +0100

    sof-soundwire: rt1316/rt1318 - fix channel selection for one amp
    
    Like in commit 9e29f9e27f4e27dce40d8d6803031bb4f7be3c48, use L-R
    channel selection when single amp is present.
    
    Signed-off-by: Jaroslav Kysela <perex@perex.cz>

@CNG
Copy link
Author

CNG commented Mar 27, 2024

All right, some progress.

Using your last patch, the jack detection seems to work now. Opening pavucontrol after booting, I saw the headphones were (correctly) unplugged. Plugging in changed that message to say plugged in almost immediately, and same when I unplugged.

I tried to play sound through the headphones using speaker-test -Dhw:1,0 -c2 -r48000 -FS16_LE -t sine, and I almost immediately heard the tone (correctly) through the left earpiece. Then nothing from the right, and nothing from the left after that. I repeated the test but got no sound the second time. I opened pavucontrol to see only the Dummy Output and the Configuration tab showed Profile: Off under Meteor Lake-P HD Audio Controller. Only Pro Audio appears in the dropdown now.

I assume something crashed, but not sure what to look for. As a stab in the dark I tried:

$ sudo journalctl -p3 | grep pipewire
Mar 27 13:17:28 Charlie24 pipewire[1360]: spa.alsa: hw:sofsoundwirep: snd_pcm_prepare error: Invalid argument
Mar 27 13:17:29 Charlie24 pipewire[1360]: spa.alsa: hw:sofsoundwirep: recover from error state SETUP
Mar 27 15:29:52 Charlie24 pipewire[1325]: spa.alsa: hw:1,2p: snd_pcm_prepare error: Invalid argument
Mar 27 15:29:53 Charlie24 pipewire[1325]: spa.alsa: hw:1,2p: recover from error state SETUP
Mar 27 15:32:53 Charlie24 pipewire[2168]: spa.alsa: 'hw:1,0': playback open failed: Device or resource busy

Anyway, I'm not sure at this point what pieces you can help with, where I should seek help elsewhere, what is likely already being addressed by others if I were more patient, etc. I just want to be of service in case something wouldn't otherwise be addressed, if that makes sense.

Thank you!

@plbossart
Copy link
Member

ok, thanks for testing the jack detection. That's a good sign.

for the rest, it's where remote debug becomes difficult. there are just too many moving parts with userspace components that are not all well aligned.

If it was my own device, I would try to make the sound work on all endpoints with alsa-ucm in a command line.

this should be something like

alsaucm -c sof-soundwire set _verb HiFi set _enadev "Jack Out"
speaker-test -Dhw:1,2 -c2 -r48000 -FS16_LE -t sine

and then check what happens if you modify the mixer settings with something like (possible syntax or typos, but you should get the idea)

amixer -Dhw:1 cset name='rt711 Headphone Switch' on

alsaucm -c sof-soundwire set _verb HiFi set _enadev Speaker
speaker-test -Dhw:1,2 -c2 -r48000 -FS16_LE -t sine

amixer -Dhw:1 cset name='rt1316-1 RX Channel Select' "L/R"
amixer -Dhw:1 cset name='rt1316-1 DAC L Switch' 1
amixer -Dhw:1 cset name='rt1316-1 DAC R Switch' 1

plbossart added a commit that referenced this issue Apr 4, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: #4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
plbossart added a commit that referenced this issue Apr 4, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: #4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
kv2019i pushed a commit to thesofproject/sof that referenced this issue Apr 5, 2024
This device has RT711 on link0, RT1316 on link3 and 2 PCH-attached DMICs.

Add 3 configurations with no DMIC, 4 DMIC and 2 DMIC. For now no
support for -pdm1.

Link: thesofproject/linux#4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
plbossart added a commit that referenced this issue Apr 8, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: #4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
plbossart added a commit that referenced this issue Apr 11, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: #4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this issue Apr 11, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: thesofproject#4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
intel-lab-lkp pushed a commit to intel-lab-lkp/linux that referenced this issue Apr 15, 2024
This platform has an RT711-sdca on link0 and RT1316 on link3

Closes: thesofproject#4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20240411220347.131267-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
eddy1021 pushed a commit to eddy1021/sof that referenced this issue Jul 15, 2024
This device has RT711 on link0, RT1316 on link3 and 2 PCH-attached DMICs.

Add 3 configurations with no DMIC, 4 DMIC and 2 DMIC. For now no
support for -pdm1.

Link: thesofproject/linux#4880
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@ImDevinC
Copy link

ImDevinC commented Jul 19, 2024

Should this fix be rolled out fully now? I'm on the same computer using arch linux but do not have audio and get the same dmesg errors as posted in the original post, using kernel 6.10 (was using 6.9 before) and have the latest available sof-firmware 2024.06-1 and have the latest alsa-ucm-conf which is from june 12 (1.2.12)

@plbossart
Copy link
Member

the patch is in 6.10, see
0f8edb1 ASoC: Intel: soc-acpi: add support for HP Omen14 SoundWire configuration

@CNG
Copy link
Author

CNG commented Jul 19, 2024

@ImDevinC do let me know if you get your sound working. :-) I was not able to have success running with Mr. Bossart's March 28 comment on next steps I should try.

@plbossart
Copy link
Member

@ImDevinC please confirm that you are indeed using 6.10 and if you see the issue with the wrong topology being requested.

@plbossart
Copy link
Member

@CNG I don't remember where I left my keys, I can't possibly remember what I said in March haha.

From the comments it seems the kernel didn't show any bad messages, jack detection worked. Not sure if UCM ever worked?

@ImDevinC
Copy link

ImDevinC commented Jul 19, 2024

Ahh my bad, I'm on 6.9.10 (misread the update), will look at 6.10 next week and confirm again. Apologies

@ImDevinC
Copy link

ImDevinC commented Jul 20, 2024

Just confirmed I'm on 6.10 and while the audio device shows up now, I do not get any audio. Here's what I'm seeing in journalctl for "sof-". My dmesg buffer is too large to go back to the beginning because there is a bunch of spam messages about the audio card (I'll put those below)
Also, since this issue is already closed, let me know if it would be better to create a new one with this info

Jul 21 09:51:06.879342 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: enabling device (0000 -> 0002)
Jul 21 09:51:06.886182 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
Jul 21 09:51:06.886285 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Jul 21 09:51:06.889348 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: use msi interrupt mode
Jul 21 09:51:06.899343 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: DMICs detected in NHLT tables: 2
Jul 21 09:51:06.899515 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 4
Jul 21 09:51:06.902678 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware paths/files for ipc type 1:
Jul 21 09:51:06.902832 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3:  Firmware file:     intel/sof-ipc4/mtl/sof-mtl.ri
Jul 21 09:51:06.902956 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3:  Firmware lib path: intel/sof-ipc4-lib/mtl
Jul 21 09:51:06.903065 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3:  Topology file:     intel/sof-ace-tplg/sof-mtl-rt711-l0-rt1316-l3-2ch.tplg
Jul 21 09:51:06.903176 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.10.0.1
Jul 21 09:51:07.026011 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Booted firmware version: 2.10.0.1
Jul 21 09:51:07.036010 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Topology: ABI 3:29:0 Kernel ABI 3:23:0
Jul 21 09:51:07.070351 bean kernel: input: sof-soundwire Headset Jack as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card1/input23
Jul 21 09:51:07.070376 bean kernel: input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card1/input24
Jul 21 09:51:07.070389 bean kernel: input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card1/input25
Jul 21 09:51:07.070402 bean kernel: input: sof-soundwire HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card1/input26
Jul 21 09:52:50.079336 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump start ]------------
Jul 21 09:52:50.079656 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: DSP panic!
Jul 21 09:52:50.079800 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (7)
Jul 21 09:52:50.079926 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: 0x50000005: module: ROM_EXT, state: FW_ENTERED, running
Jul 21 09:52:50.080043 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware state: 0x5, status/error code: 0x0
Jul 21 09:52:50.080154 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Unknown toolchain is used
Jul 21 09:52:50.080266 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: error: DSP Firmware Oops
Jul 21 09:52:50.080396 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: error: Exception Cause: AllocaCause, MOVSP instruction, if caller’s registers are not in the register file
Jul 21 09:52:50.080514 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: EXCCAUSE 0x00000005 EXCVADDR 0x00000000 PS       0x00060e20 SAR     0x0000000c
Jul 21 09:52:50.080625 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: EPC1     0xa00727e5 EPC2     0x00000000 EPC3     0x00000000 EPC4    0x00000000
Jul 21 09:52:50.080738 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: EPC5     0x00000000 EPC6     0x00000000 EPC7     0x00000000 DEPC    0x00000000
Jul 21 09:52:50.080847 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: EPS2     0x00000000 EPS3     0x00000000 EPS4     0x00000000 EPS5    0x00000000
Jul 21 09:52:50.080952 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: EPS6     0x00000000 EPS7     0x00000000 INTENABL 0x00000000 INTERRU 0x00000000
Jul 21 09:52:50.081057 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: stack dump from 0x00000000
Jul 21 09:52:50.081168 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: AR registers:
Jul 21 09:52:50.081278 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: 0x0: a004b5d5 a0102f00 00000000 4011b440
Jul 21 09:52:50.081390 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: 0x10: a011b4c0 00000018 40107730 a0102f00
Jul 21 09:52:50.081498 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: 0x20: a005bf99 a0102ec0 40107730 a00613d8
Jul 21 09:52:50.081605 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: 0x30: a005bf99 a0102ec0 40107730 a00613d8
Jul 21 09:52:50.081711 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ DSP dump end ]------------
Jul 21 09:52:50.586371 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc timed out for 0xe030003|0xc00
Jul 21 09:52:50.586696 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump start ]------------
Jul 21 09:52:50.586875 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Host IPC initiator: 0x8e030003|0xc00|0x0, target: 0x1b0a0000|0x0|0x0, ctl: 0x3
Jul 21 09:52:50.587031 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ------------[ IPC dump end ]------------
Jul 21 09:52:50.587179 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: IPC timeout
Jul 21 09:52:50.587333 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
Jul 21 09:52:50.587503 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0xe010003|0x0 failed: -19
Jul 21 09:52:50.587652 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -19
Jul 21 09:52:50.587835 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x13000003|0x1 failed: -19
Jul 21 09:52:50.587985 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to pause all pipelines
Jul 21 09:52:50.588129 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -19
Jul 21 09:52:50.588295 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x46000002|0x3 failed: -19
Jul 21 09:52:50.588442 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to unbind modules mixin.0.1:0 -> mixout.1.1:0
Jul 21 09:52:50.588598 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x12000000|0x0 failed: -19
Jul 21 09:52:50.588742 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to free pipeline widget pipeline.0
Jul 21 09:52:50.588884 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x12010000|0x0 failed: -19
Jul 21 09:52:50.589032 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to free pipeline widget pipeline.1
Jul 21 09:52:50.589176 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to free connected widgets
Jul 21 09:52:50.589346 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: sof_pcm_stream_free: sof_widget_list_free failed -19
Jul 21 09:52:50.589496 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_prepare on 0000:00:1f.3: -19
Jul 21 09:52:50.589899 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x13000003|0x1 failed: -19
Jul 21 09:52:50.590047 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to pause all pipelines
Jul 21 09:52:50.590190 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -19
Jul 21 09:52:50.590351 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x46010002|0x10003 failed: -19
Jul 21 09:52:50.590499 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to unbind modules mixin.20.1:0 -> mixout.21.1:0
Jul 21 09:52:50.590639 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x12020000|0x0 failed: -19
Jul 21 09:52:50.590778 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to free pipeline widget pipeline.20
Jul 21 09:52:50.590919 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0x12030000|0x0 failed: -19
Jul 21 09:52:50.591069 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to free pipeline widget pipeline.21
Jul 21 09:52:50.591208 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to free connected widgets
Jul 21 09:52:50.591344 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: sof_pcm_stream_free: sof_widget_list_free failed -19
Jul 21 09:52:50.591481 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_prepare on 0000:00:1f.3: -19
Jul 21 09:52:50.591663 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ipc4_tx_msg_unlocked: ipc message send for 0xe010002|0x0 failed: -19
Jul 21 09:52:50.591804 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -19
Jul 21 09:52:50.591965 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: sof_pcm_stream_free: pcm_ops hw_free failed -19
Jul 21 09:52:50.592127 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_prepare on 0000:00:1f.3: -19
Jul 21 09:52:50.592397 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to create module pipeline.0
Jul 21 09:52:50.592628 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to set up connected widgets
Jul 21 09:52:50.592779 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: error: failed widget list set up for pcm 0 dir 0
Jul 21 09:52:50.593003 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: error: set pcm hw_params after resume
Jul 21 09:52:50.593209 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_prepare on 0000:00:1f.3: -19
Jul 21 09:52:50.593352 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: failed to create module pipeline.20
Jul 21 09:52:50.593461 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to set up connected widgets
Jul 21 09:52:50.593565 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: error: failed widget list set up for pcm 2 dir 0
Jul 21 09:52:50.593668 bean kernel: sof-audio-pci-intel-mtl 0000:00:1f.3: error: set pcm hw_params after resume

...

Repeated messages in dmesg

[  510.927461]  Speaker: ASoC: error at __soc_pcm_prepare on Speaker: -19
[  510.927464]  Speaker: ASoC: error at dpcm_fe_dai_prepare on Speaker: -19
[  510.932642] sof-audio-pci-intel-mtl 0000:00:1f.3: failed to create module pipeline.0
[  510.932645] sof-audio-pci-intel-mtl 0000:00:1f.3: Failed to set up connected widgets
[  510.932647] sof-audio-pci-intel-mtl 0000:00:1f.3: error: failed widget list set up for pcm 0 dir 0
[  510.932649] sof-audio-pci-intel-mtl 0000:00:1f.3: error: set pcm hw_params after resume
[  510.932650] sof-audio-pci-intel-mtl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_prepare on 0000:00:1f.3: -19
[  510.932652]  Jack Out: ASoC: error at __soc_pcm_prepare on Jack Out: -19
[  510.932654]  Jack Out: ASoC: error at dpcm_fe_dai_prepare on Jack Out: -19
                   -`                    devin@bean 
                  .o+`                   ---------- 
                 `ooo/                   OS: Arch Linux x86_64 
                `+oooo:                  Host: OMEN Transcend Gaming Laptop 14-fb0xxx 
               `+oooooo:                 Kernel: 6.10.0-arch1-1 
               -+oooooo+:                Uptime: 4 mins 
             `/:-:++oooo+:               Packages: 900 (pacman), 26 (flatpak) 
            `/++++/+++++++:              Shell: zsh 5.9 
           `/++++++++++++++:             Resolution: 2880x1800 
          `/+++ooooooooooooo/`           DE: Xfce 4.18 
         ./ooosssso++osssssso+`          WM: Xfwm4 
        .oossssso-````/ossssss+`         WM Theme: catppuccin-frappe-dark 
       -osssssso.      :ssssssso.        Theme: catppuccin-frappe-dark [GTK2/3] 
      :osssssss/        osssso+++.       Icons: Tela-circle-dark [GTK2/3] 
     /ossssssss/        +ssssooo/-       Terminal: tmux 
   `/ossssso+/:-        -:/+osssso+-     CPU: Intel Ultra 9 185H (22) @ 4.800GHz
  `+sso+:-`                 `.-/+oso:    GPU: Intel Arc Graphics] 
 `++:.                           `-/+/   GPU: NVIDIA GeForce RTX 4070 Max-Q / Mobile 
 .`                                 `/   Memory: 2073MiB / 31666MiB 

Using the command above, speaker-test -Dhw:1,2 -c2 -r48000 -FS16_LE -t sine I do get a proper sine wave out of each speaker (front-left/front-right)

@plbossart
Copy link
Member

This seems to be a different issue @ImDevinC, the topology is found and the configuration is ok.

The problem now is that the firmware has some sort of DSP panic. It seems you have the latest version that was released last week, do you mind trying with the SOF 2.9 firmware just to rule out a firmware issue? a DSP panic is not expected...

@plbossart
Copy link
Member

forked issue to #5116, let's continue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants