You are not logged in.

#1 2022-10-26 14:22:18

pollen
Member
Registered: 2021-05-27
Posts: 13

[SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

I have a fresh install of Arch, with a default pipewire + wireplumber setup. Audio card (according to inxi -A) is Intel Alder Lake PCH-P High Definition Audio. Bluetooth audio works fine. In pavucontrol all I can see is a dummy output and in the configuration menu, it says "no cards available", but will sometimes flicker for a second and show the card previously mentioned.

Note that I have tried using the old hda driver in modprobe, and I have sof-firmware and alsa-ucm-conf installed, but those did not help.

$ inxi -A
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    driver: sof-audio-pci-intel-tgl
  Sound API: ALSA v: k6.0.2-arch1-1 running: yes
  Sound Server-1: PipeWire v: 0.3.59 running: yes
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 31: HDA Analog Deep Buffer (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
$ amixer -c0
Simple mixer control 'Headphone',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback -63 - 0
  Mono:
  Front Left: Playback -25 [60%] [-25.00dB]
  Front Right: Playback -25 [60%] [-25.00dB]
Simple mixer control 'Speaker',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined
  Capture channels: Mono
  Limits: Capture -97 - 12
  Mono: Capture 0 [89%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 70 [100%] [20.00dB] [on]
  Front Right: Capture 70 [100%] [20.00dB] [on]
Simple mixer control 'Dmic1 2nd',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA30.0 30',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA31.0 31',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
$ pactl list sinks
Sink #38
	State: SUSPENDED
	Name: auto_null
	Description: Dummy Output
	Driver: PipeWire
	Sample Specification: float32le 2ch 48000Hz
	Channel Map: front-left,front-right
	Owner Module: 4294967295
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: auto_null.monitor
	Latency: 0 usec, configured 0 usec
	Flags: DECIBEL_VOLUME LATENCY
	Properties:
		node.name = "auto_null"
		device.description = "Dummy Output"
		audio.rate = "48000"
		audio.channels = "2"
		audio.position = "FL,FR"
		media.class = "Audio/Sink"
		factory.name = "support.null-audio-sink"
		node.virtual = "true"
		monitor.channel-volumes = "true"
		factory.id = "18"
		clock.quantum-limit = "8192"
		client.id = "34"
		node.driver = "true"
		factory.mode = "merge"
		audio.adapt.follower = ""
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "38"
		object.serial = "38"
	Formats:
		pcm
$ sudo dmesg | grep -E 'snd|sof'
[    0.031328] software IO TLB: area num 16.
[    1.043945] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    1.043945] software IO TLB: mapped [mem 0x000000004e3c3000-0x00000000523c3000] (64MB)
[    1.137440] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[    1.137448] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[    6.819148] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    6.819836] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    7.077046] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[    7.077154] sof-audio-pci-intel-tgl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    7.077164] sof-audio-pci-intel-tgl 0000:00:1f.3: enabling device (0000 -> 0002)
[    7.077381] sof-audio-pci-intel-tgl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040380
[    7.077446] sof-audio-pci-intel-tgl 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    7.083934] sof-audio-pci-intel-tgl 0000:00:1f.3: use msi interrupt mode
[    7.167451] sof-audio-pci-intel-tgl 0000:00:1f.3: hda codecs found, mask 5
[    7.167453] sof-audio-pci-intel-tgl 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    7.167455] sof-audio-pci-intel-tgl 0000:00:1f.3: DMICs detected in NHLT tables: 2
[    7.171022] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    7.171023] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[    7.171025] sof-audio-pci-intel-tgl 0000:00:1f.3: unknown sof_ext_man header type 3 size 0x30
[    7.282164] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware info: version 2:2:0-57864
[    7.282167] sof-audio-pci-intel-tgl 0000:00:1f.3: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
[   11.416776] sof-audio-pci-intel-tgl 0000:00:1f.3: Topology: ABI 3:22:1 Kernel ABI 3:23:0
[   11.453791] snd_hda_codec_cs8409 ehdaudio0D0: autoconfig for CS8409: line_outs=1 (0x2c/0x0/0x0/0x0/0x0) type:speaker
[   11.453795] snd_hda_codec_cs8409 ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   11.453797] snd_hda_codec_cs8409 ehdaudio0D0:    hp_outs=1 (0x24/0x0/0x0/0x0/0x0)
[   11.453798] snd_hda_codec_cs8409 ehdaudio0D0:    mono: mono_out=0x0
[   11.453799] snd_hda_codec_cs8409 ehdaudio0D0:    inputs:
[   11.453800] snd_hda_codec_cs8409 ehdaudio0D0:      Mic=0x34
[   11.776306] snd_hda_codec_cs8409 ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[   11.776313] snd_hda_codec_cs8409 ehdaudio0D0: ASoC: source widget AIF1RX overwritten
[   11.798027] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input19
[   11.798090] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input20
[   11.798133] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input21
[   11.798172] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input22
[   11.798218] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input23

Running pactl list cards has no output.

Last edited by pollen (2022-11-06 04:48:27)

Offline

#2 2022-10-29 01:11:44

pollen
Member
Registered: 2021-05-27
Posts: 13

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Plugging into the headphone jack does not change anything. I did not notice any changes to the outputs of any commands either.

Offline

#3 2022-10-30 22:51:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,922

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Try reloading the modules manually

modprobe -r snd-sof-pci-intel-tgl && modprobe snd-sof-pci-intel-tgl 

there's some known race conditions with the module load going on

Last edited by V1del (2022-10-30 22:54:42)

Offline

#4 2022-11-01 02:46:58

pollen
Member
Registered: 2021-05-27
Posts: 13

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Does not seem to do anything. Running modprobe just gives no output. And then the same thing as before still occurs. If it matters, I had to stop pipewire and wireplumber's services, run modprobe, and then restart them, otherwise modprobe complained that the module was in use.

Last edited by pollen (2022-11-01 03:22:51)

Offline

#5 2022-11-01 07:44:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,922

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Well the devices are technically there and occupied by "something". What do you get from

amixer -c0
speaker-test -Dhw:0.0 -c2
speaker-test -Dhw:0.31 -c2
pactl list cards

and make sure you are up to date, there have been a bunch of sof loading fixes in the kernels leading up to the current 6.0.6

Last edited by V1del (2022-11-01 07:46:48)

Offline

#6 2022-11-01 13:05:38

pollen
Member
Registered: 2021-05-27
Posts: 13

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Everything is up to date. I'm running 6.0.6.

$ amixer -c0
Simple mixer control 'Headphone',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback -63 - 0
  Mono:
  Front Left: Playback -25 [60%] [-25.00dB]
  Front Right: Playback -25 [60%] [-25.00dB]
Simple mixer control 'Speaker',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined
  Capture channels: Mono
  Limits: Capture -97 - 12
  Mono: Capture 0 [89%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 70 [100%] [20.00dB] [on]
  Front Right: Capture 70 [100%] [20.00dB] [on]
Simple mixer control 'Dmic1 2nd',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA30.0 30',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA31.0 31',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
$ speaker-test -Dhw:0.0 -c2

speaker-test 1.2.8

Playback device is hw:0.0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for 0.0
Playback open error: -19,No such device
$ speaker-test -Dhw:0.31 -c2

speaker-test 1.2.8

Playback device is hw:0.31
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for 0.31
Playback open error: -19,No such devic

pactl list cards outputs nothing.

Offline

#7 2022-11-01 16:16:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,922

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Argh, should be hw:0,0 and hw:0,31 respectively

Offline

#8 2022-11-01 18:51:21

pollen
Member
Registered: 2021-05-27
Posts: 13

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

$ speaker-test -Dhw:0,0 -c2

speaker-test 1.2.8

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy
$ speaker-test -Dhw:0,31 -c2

speaker-test 1.2.8

Playback device is hw:0,31
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 16384
Period size range from 48 to 4096
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
^[^C 1 - Front Right
Time per period = 2.390792

Second one worked fine.

Offline

#9 2022-11-01 19:04:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,922

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

you did get audio from that? I don't think I've ever seen any device on index 31. general setup wise you do have wireplumber and pipewire? Outputs of

sudo fuser -v /dev/snd/*
aplay -L

? If push comes to shove you could define an alsa-card-profile explicitly invoking on the 31 card, akin to https://wiki.archlinux.org/title/WirePl … sound_card

Offline

#10 2022-11-01 19:19:52

pollen
Member
Registered: 2021-05-27
Posts: 13

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Yes, I got audio from the second one. And I do have wireplumber + pipewire.

$ sudo fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  ppeb        609 F.... wireplumber
/dev/snd/pcmC0D5p:   ppeb        609 F...m wireplumber
/dev/snd/seq:        ppeb        606 F.... pipewire
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
default
    Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=sofhdadsp
    sof-hda-dsp,
    Default Audio Device

Offline

#11 2022-11-06 04:47:40

pollen
Member
Registered: 2021-05-27
Posts: 13

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

Decided to come back to this. Replaced wireplumber with pipewire-media-session and it just worked... it's fine since I was not using any of wireplumber's features.

Offline

#12 2022-11-08 11:05:24

halogene
Member
Registered: 2013-05-29
Posts: 62

Re: [SOLVED]Unable to use speakers on Dell Inspiron 16 with Alder Lake cpu

I experienced a similar problem on an Asus Vivobook S14X (S5402), where the internal speakers did not produce sound (though they initially did, but after connecting bluetooth speakers once they refused to work). Applications playing sound would behave weirdly (for example youtube videos would just not play at all, unless I manually mute them, kodi would not exit but crash...).

I found out I was able to get the speakers working again when I set the audio profile with pavucontrol to "off" and then to "High Definition Audio" again. But that's tedious of course, especially as I would have to do that EVERY time after I used bluetooth speakers.

It is only after I tried your solution to replace wireplumber with pipewire-media-session that sound works just as it is supposed to and applications no longer misbehave. Thank you so much!

Offline

Board footer

Powered by FluxBB