You are not logged in.
Pages: 1
hello,
I've recently acquired a xps 13 9340 and I've installed arch on it (using the archinstall script).
I've several problem with it but the main pain point to me is the absence of sound. in gnome parameters, I see a 'dummy output' and no input. I've already tried disabling and reenabling the integrated devices in bios.
I'm using pipewire, installed sof-firmware and alsa-firmware (I also have alsa-util, but I don't think it is relevant). I've no /etc/asound.conf nor ~/.asoundrc file.
I've notice some error in alsa-restore service :
❯ systemctl status alsa-restore.service
● alsa-restore.service - Save/Restore Sound Card State
Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
Active: active (exited) since Mon 2024-06-10 08:54:31 CEST; 1h 18min ago
Process: 1511 ExecStart=/usr/bin/alsactl restore (code=exited, status=0/SUCCESS)
Main PID: 1511 (code=exited, status=0/SUCCESS)
CPU: 7ms
juin 10 08:54:31 xxx systemd[1]: Starting Save/Restore Sound Card State...
juin 10 08:54:31 xxx alsactl[1511]: alsa-lib ucm_subs.c:807:(uc_mgr_get_substituted_value) variable '${var:__RegEx}' is not defined in this context!
juin 10 08:54:31 xxx alsactl[1511]: alsa-lib parser.c:2024:(parse_verb_file) error: /sof-soundwire/HiFi.conf failed to parse device
juin 10 08:54:31 xxx alsactl[1511]: alsa-lib main.c:1554:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -22
juin 10 08:54:31 xxx systemd[1]: Finished Save/Restore Sound Card State.
Any help would be welcome.
Here are some commands output :
❯ lspci
0000:00:00.0 Host bridge: Intel Corporation Device 7d01 (rev 04)
0000:00:02.0 VGA compatible controller: Intel Corporation Meteor Lake-P [Intel Arc Graphics] (rev 08)
0000:00:04.0 Signal processing controller: Intel Corporation Meteor Lake-P Dynamic Tuning Technology (rev 04)
0000:00:05.0 Multimedia controller: Intel Corporation Meteor Lake IPU (rev 04)
0000:00:06.0 System peripheral: Intel Corporation RST VMD Managed Controller
0000:00:07.0 PCI bridge: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #0 (rev 10)
0000:00:07.3 PCI bridge: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #3 (rev 10)
0000:00:08.0 System peripheral: Intel Corporation Meteor Lake-P Gaussian & Neural-Network Accelerator (rev 20)
0000:00:0a.0 Signal processing controller: Intel Corporation Meteor Lake-P Platform Monitoring Technology (rev 01)
0000:00:0b.0 Processing accelerators: Intel Corporation Meteor Lake NPU (rev 04)
0000:00:0d.0 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 USB Controller (rev 10)
0000:00:0d.2 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #0 (rev 10)
0000:00:0d.3 USB controller: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #1 (rev 10)
0000:00:0e.0 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller Intel Corporation
0000:00:12.0 Serial controller: Intel Corporation Meteor Lake-P Integrated Sensor Hub (rev 20)
0000:00:14.0 USB controller: Intel Corporation Meteor Lake-P USB 3.2 Gen 2x1 xHCI Host Controller (rev 20)
0000:00:14.2 RAM memory: Intel Corporation Device 7e7f (rev 20)
0000:00:15.0 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #0 (rev 20)
0000:00:15.2 Serial bus controller: Intel Corporation Meteor Lake-P Serial IO I2C Controller #2 (rev 20)
0000:00:16.0 Communication controller: Intel Corporation Meteor Lake-P CSME HECI #1 (rev 20)
0000:00:1c.0 PCI bridge: Intel Corporation Device 7e3f (rev 20)
0000:00:1e.0 Communication controller: Intel Corporation Meteor Lake-P Serial IO UART Controller #0 (rev 20)
0000:00:1f.0 ISA bridge: Intel Corporation Device 7e02 (rev 20)
0000:00:1f.3 Multimedia audio controller: Intel Corporation Meteor Lake-P HD Audio Controller (rev 20)
0000:00:1f.4 SMBus: Intel Corporation Meteor Lake-P SMBus Controller (rev 20)
0000:00:1f.5 Serial bus controller: Intel Corporation Meteor Lake-P SPI Controller (rev 20)
0000:71:00.0 Network controller: Intel Corporation Wi-Fi 7(802.11be) AX1775*/AX1790*/BE20*/BE401/BE1750* 2x2 (rev 1a)
10000:e0:06.0 PCI bridge: Intel Corporation Device 7e4d (rev 20)
10000:e1:00.0 Non-Volatile memory controller: Micron Technology Inc 2550 NVMe SSD (DRAM-less) (rev 01)
❯ pactl info
Server String: /run/user/1000/pulse/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 163
Tile Size: 65472
User Name: xxx
Host Name: xxx
Server Name: PulseAudio (on PipeWire 1.0.7)
Server Version: 15.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: auto_null
Default Source: auto_null.monitor
Cookie: e59f:fa95
Last edited by neyb (2024-06-18 12:52:43)
Offline
aplay -l
sudo dmesg | grep -E 'snd|sof'
Offline
❯ aplay -l
**** Liste des périphériques matériels PLAYBACK ****
carte 0 : sofsoundwire [sof-soundwire], périphérique 2 : Speaker (*) []
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 0 : sofsoundwire [sof-soundwire], périphérique 5 : HDMI1 (*) []
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 0 : sofsoundwire [sof-soundwire], périphérique 6 : HDMI2 (*) []
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 0 : sofsoundwire [sof-soundwire], périphérique 7 : HDMI3 (*) []
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
❯ sudo dmesg | grep -E 'snd|sof'
[ 0.036707] software IO TLB: area num 32.
[ 0.501001] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[ 0.501002] software IO TLB: mapped [mem 0x000000003b8b2000-0x000000003f8b2000] (64MB)
[ 0.573349] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[ 0.573357] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[ 104.974455] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 104.974810] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 105.335341] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 105.336041] sof-audio-pci-intel-mtl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 105.336059] sof-audio-pci-intel-mtl 0000:00:1f.3: enabling device (0000 -> 0002)
[ 105.336368] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 106.729271] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 106.729294] snd_hda_intel 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 106.729313] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[ 106.729323] sof-audio-pci-intel-mtl 0000:00:1f.3: SoundWire enabled on CannonLake+ platform, using SOF driver
[ 106.729948] sof-audio-pci-intel-mtl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[ 107.898351] sof-audio-pci-intel-mtl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 107.904926] sof-audio-pci-intel-mtl 0000:00:1f.3: use msi interrupt mode
[ 107.923479] sof-audio-pci-intel-mtl 0000:00:1f.3: hda codecs found, mask 4
[ 107.927238] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware paths/files for ipc type 1:
[ 107.927241] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware file: intel/sof-ipc4/mtl/sof-mtl.ri
[ 107.927242] sof-audio-pci-intel-mtl 0000:00:1f.3: Firmware lib path: intel/sof-ipc4-lib/mtl
[ 107.927243] sof-audio-pci-intel-mtl 0000:00:1f.3: Topology file: intel/sof-ace-tplg/sof-mtl-rt1318-l12-rt714-l0.tplg
[ 107.927911] sof-audio-pci-intel-mtl 0000:00:1f.3: Loaded firmware library: ADSPFW, version: 2.9.0.1
[ 108.043459] sof-audio-pci-intel-mtl 0000:00:1f.3: Booted firmware version: 2.9.0.1
[ 108.073698] sof-audio-pci-intel-mtl 0000:00:1f.3: Topology: ABI 3:29:0 Kernel ABI 3:23:0
[ 108.073843] sof_sdw sof_sdw: ASoC: Parent card not yet available, widget card binding deferred
[ 108.084255] sof_sdw sof_sdw: hda_dsp_hdmi_build_controls: no PCM in topology for HDMI converter 3
[ 108.101104] input: sof-soundwire HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input20
[ 108.101151] input: sof-soundwire HDMI/DP,pcm=6 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input21
[ 108.101183] input: sof-soundwire HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0/input22
thanks !
Offline
looks somewhat okay, maybe just a bug in alsa-ucm-conf. Do you get audio from
speaker-test -Dhw:0 -c2
Offline
`speaker-test -Dhw:0 -c2` gives no output.
I'm currently playing with pactl, I've notice the current profile is "off"
❯ pactl list cards
Card #49
Name: alsa_card.pci-0000_00_1f.3-platform-sof_sdw
Driver: alsa
Owner Module: n/a
Properties:
api.acp.auto-port = "false"
api.alsa.card = "0"
api.alsa.card.longname = "Intel Soundwire SOF"
api.alsa.card.name = "sof-soundwire"
api.alsa.path = "hw:0"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio0"
api.dbus.ReserveDevice1.Priority = "-20"
device.api = "alsa"
device.bus = "pci"
device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
device.description = "Meteor Lake-P HD Audio Controller"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
device.nick = "sof-soundwire"
device.plugged.usec = "26736832"
device.product.id = "0x7e28"
device.product.name = "Meteor Lake-P HD Audio Controller"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
device.vendor.id = "0x8086"
device.vendor.name = "Intel Corporation"
media.class = "Audio/Device"
factory.id = "14"
client.id = "45"
object.id = "49"
object.serial = "49"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "sof-soundwire"
alsa.long_card_name = "Intel Soundwire SOF"
alsa.driver_name = "snd_soc_sof_sdw"
alsa.mixer_name = "Intel Meteor Lake HDMI"
alsa.components = "HDA:8086281d,80860101,00100000 cfg-spk:2 cfg-amp:2 spk:rt1318 mic:rt715-sdca"
alsa.id = "sofsoundwire"
device.string = "0"
Profiles:
off: Éteint (sinks: 0, sources: 0, priority: 0, available: yes)
pro-audio: Pro Audio (sinks: 4, sources: 2, priority: 1, available: yes)
Active Profile: off
So I ran `pactl set-card-profile 49 pro-audio` and now I get 4 outputs and 2 inputs (in pavucontrol), but none of them is working...
Offline
if the speaker test doesn't work you can forget about everything else.
What's your
amixer -c0
? You're running on the 6.9.3 kernel? There's a new alsa-lib update that should come to the repos soon™ potentially that fixes things (according to this reddit post it should). Other than that this could be up to sof-firmware/not yet in the kernel.
If you can't wait for the alsa-lib update to hit the repos, might want to give https://aur.archlinux.org/packages/alsa-ucm-conf-git a shot. But the new alsa-lib released is tagged and released, so it should not be long until it's packaged up for Arch.
Offline
❯ amixer -c0
Simple mixer control 'Speaker',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Amplifier',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 45
Front Left: 45 [100%] [0.00dB]
Front Right: 45 [100%] [0.00dB]
Simple mixer control 'Main Amplifier',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 45
Front Left: 45 [100%] [0.00dB]
Front Right: 45 [100%] [0.00dB]
Simple mixer control 'rt1318-1 DAC',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [off]
Front Right: Playback [off]
Simple mixer control 'rt1318-1 RX Channel Select',0
Capabilities: enum
Items: 'L,R' 'L,L' 'L,R' 'L,L+R' 'R,L' 'R,R' 'R,L+R' 'L+R,L' 'L+R,R' 'L+R,L+R'
Item0: 'L,R'
Simple mixer control 'rt1318-2 DAC',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [off]
Front Right: Playback [off]
Simple mixer control 'rt1318-2 RX Channel Select',0
Capabilities: enum
Items: 'L,R' 'L,L' 'L,R' 'L,L+R' 'R,L' 'R,R' 'R,L+R' 'L+R,L' 'L+R,R' 'L+R,L+R'
Item0: 'L,R'
Simple mixer control 'rt714 ADC 22 Mux',0
Capabilities: enum
Items: 'MIC1' 'MIC2' 'LINE1' 'LINE2' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
Item0: 'MIC1'
Simple mixer control 'rt714 ADC 23 Mux',0
Capabilities: enum
Items: 'MIC1' 'MIC2' 'LINE1' 'LINE2' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
Item0: 'MIC2'
Simple mixer control 'rt714 ADC 24 Mux',0
Capabilities: enum
Items: 'MIC2' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
Item0: 'MIC2'
Simple mixer control 'rt714 ADC 25 Mux',0
Capabilities: enum
Items: 'MIC1' 'DMIC1' 'DMIC2' 'DMIC3' 'DMIC4'
Item0: 'MIC1'
Simple mixer control 'rt714 FU02',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right - Rear Left - Rear Right
Limits: Capture 0 - 63
Front Left: Capture 63 [100%] [30.00dB] [off]
Front Right: Capture 63 [100%] [30.00dB] [off]
Rear Left: Capture 63 [100%] [30.00dB] [off]
Rear Right: Capture 63 [100%] [30.00dB] [off]
Simple mixer control 'rt714 FU06',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right - Rear Left - Rear Right
Limits: Capture 0 - 63
Front Left: Capture 63 [100%] [30.00dB] [off]
Front Right: Capture 63 [100%] [30.00dB] [off]
Rear Left: Capture 63 [100%] [30.00dB] [off]
Rear Right: Capture 63 [100%] [30.00dB] [off]
Simple mixer control 'rt714 FU0A',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 63 [100%] [30.00dB] [off]
Front Right: Capture 63 [100%] [30.00dB] [off]
Simple mixer control 'rt714 FU0C Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Limits: 0 - 3
Front Left: 3 [100%] [30.00dB]
Front Right: 3 [100%] [30.00dB]
Rear Left: 3 [100%] [30.00dB]
Rear Right: 3 [100%] [30.00dB]
Front Center: 3 [100%] [30.00dB]
Woofer: 3 [100%] [30.00dB]
Side Left: 3 [100%] [30.00dB]
Side Right: 3 [100%] [30.00dB]
Simple mixer control 'rt714 FU0E Boost',0
Capabilities: volume
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right
Limits: 0 - 3
Front Left: 3 [100%] [30.00dB]
Front Right: 3 [100%] [30.00dB]
Rear Left: 3 [100%] [30.00dB]
Rear Right: 3 [100%] [30.00dB]
Front Center: 3 [100%] [30.00dB]
Woofer: 3 [100%] [30.00dB]
Side Left: 3 [100%] [30.00dB]
Side Right: 3 [100%] [30.00dB]
The result does not seems to be affected by the pa profile.
> You're running on the 6.9.3 kernel?
Yes, but I also tried LTS with no result.
Btw, it seems I'm not the only one on a xps 13 9340 having this problem, but it seems ubuntu is fine on it...
Last edited by neyb (2024-06-12 16:40:31)
Offline
I've installed the alsa-ucm-conf-git, and it add a new profile "Hifi" which seems to work for the output, but the micro (input) seems not to be working.
❯ pactl list cards
Card #49
Name: alsa_card.pci-0000_00_1f.3-platform-sof_sdw
Driver: alsa
Owner Module: n/a
Properties:
api.acp.auto-port = "false"
api.alsa.card = "0"
api.alsa.card.longname = "Intel Soundwire SOF"
api.alsa.card.name = "sof-soundwire"
api.alsa.path = "hw:0"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio0"
api.dbus.ReserveDevice1.Priority = "-20"
device.api = "alsa"
device.bus = "pci"
device.bus_path = "pci-0000:00:1f.3-platform-sof_sdw"
device.description = "Meteor Lake-P HD Audio Controller"
device.enum.api = "udev"
device.icon_name = "audio-card-analog-pci"
device.name = "alsa_card.pci-0000_00_1f.3-platform-sof_sdw"
device.nick = "sof-soundwire"
device.plugged.usec = "23508408"
device.product.id = "0x7e28"
device.product.name = "Meteor Lake-P HD Audio Controller"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sof_sdw/sound/card0"
device.vendor.id = "0x8086"
device.vendor.name = "Intel Corporation"
media.class = "Audio/Device"
factory.id = "14"
client.id = "45"
object.id = "49"
object.serial = "49"
object.path = "alsa:pcm:0"
alsa.card = "0"
alsa.card_name = "sof-soundwire"
alsa.long_card_name = "Intel Soundwire SOF"
alsa.driver_name = "snd_soc_sof_sdw"
alsa.mixer_name = "Intel Meteor Lake HDMI"
alsa.components = "HDA:8086281d,80860101,00100000 cfg-spk:2 cfg-amp:2 spk:rt1318 mic:rt715-sdca"
alsa.id = "sofsoundwire"
device.string = "0"
Profiles:
off: Éteint (sinks: 0, sources: 0, priority: 0, available: yes)
HiFi: Play HiFi quality Music (sinks: 4, sources: 1, priority: 8000, available: yes)
pro-audio: Pro Audio (sinks: 4, sources: 2, priority: 1, available: yes)
Active Profile: HiFi
Ports:
[Out] HDMI3: HDMI / DisplayPort 3 Output (type: HDMI, priority: 700, latency offset: 0 usec, availability group: HDMI/DP,pcm=7, not available)
Properties:
port.type = "hdmi"
port.availability-group = "HDMI/DP,pcm=7"
device.icon_name = "video-display"
card.profile.port = "0"
Part of profile(s): HiFi
[Out] HDMI2: HDMI / DisplayPort 2 Output (type: HDMI, priority: 600, latency offset: 0 usec, availability group: HDMI/DP,pcm=6, not available)
Properties:
port.type = "hdmi"
port.availability-group = "HDMI/DP,pcm=6"
device.icon_name = "video-display"
card.profile.port = "1"
Part of profile(s): HiFi
[Out] HDMI1: HDMI / DisplayPort 1 Output (type: HDMI, priority: 500, latency offset: 0 usec, availability group: HDMI/DP,pcm=5, available)
Properties:
port.type = "hdmi"
port.availability-group = "HDMI/DP,pcm=5"
device.icon_name = "video-display"
card.profile.port = "2"
device.product.name = "LG ULTRAGEAR"
Part of profile(s): HiFi
[Out] Speaker: Speaker (type: Speaker, priority: 100, latency offset: 0 usec, availability unknown)
Properties:
port.type = "speaker"
device.icon_name = "audio-speakers"
card.profile.port = "3"
Part of profile(s): HiFi
[In] Mic: SoundWire microphones (type: Mic, priority: 100, latency offset: 0 usec, availability unknown)
Properties:
port.type = "mic"
device.icon_name = "audio-input-microphone"
card.profile.port = "4"
Part of profile(s): HiFi
❯ arecord -l
**** Liste des périphériques matériels CAPTURE ****
carte 0 : sofsoundwire [sof-soundwire], périphérique 3 : Amp feedback (*) []
Sous-périphériques : 1/1
Sous-périphérique #0 : subdevice #0
carte 0 : sofsoundwire [sof-soundwire], périphérique 4 : Microphone (*) []
Sous-périphériques : 0/1
Sous-périphérique #0 : subdevice #0
Last edited by neyb (2024-06-12 16:47:45)
Offline
I've switch back to the alsa-ucm-conf (not -git) as it indeed has been released few hours after you call it.
For information, I've directly created an issue on the alsa-ucm-conf github repo : https://github.com/alsa-project/alsa-uc … issues/425.
Thanks a lot V1del !
Offline
Btw the problem has been solved with this solution : https://github.com/alsa-project/alsa-uc … 2175849417, I'm closing the topic.
Offline
Pages: 1