View previous topic :: View next topic |
Author |
Message |
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Sat Jan 04, 2025 12:47 pm Post subject: No sound through internal speakers on Steam Deck |
|
|
I installed Gentoo on Steam Deck and can't quite figure out how to get ALSA working.
I run gentoo-sources 6.12.8 with this configuration https://dpaste.com/FQB9EMMV7.
What could cause this behavior?
There is an interesting line in dmesg that seems related:
Code: | # dmesg | grep -i 'acp5x'
[ 3.907437] snd_pci_acp5x 0000:04:00.5: enabling device (0000 -> 0002)
[ 14.657169] platform acp5x_mach.0: deferred probe pending: acp5x_mach: Register card (acp5x) failed
|
Full dmesg: (don't ask why I connected and disconnected my keyboard a bunch of times) https://dpaste.com/BXMB3PL6Y
Also lspci:
Code: | # lspci -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Root Complex
Subsystem: Valve Software Device 1776
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] VanGogh PCIe GPP Bridge
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] VanGogh PCIe GPP Bridge
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:01.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] VanGogh PCIe GPP Bridge
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Internal PCIe GPP Bridge to Bus
Subsystem: Advanced Micro Devices, Inc. [AMD] VanGogh Internal PCIe GPP Bridge to Bus
Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Internal PCIe GPP Bridge to Bus
Subsystem: Advanced Micro Devices, Inc. [AMD] VanGogh Internal PCIe GPP Bridge to Bus
Kernel driver in use: pcieport
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Internal PCIe GPP Bridge to Bus
Subsystem: Advanced Micro Devices, Inc. [AMD] VanGogh Internal PCIe GPP Bridge to Bus
Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
Subsystem: Valve Software Device 1776
Kernel driver in use: piix4_smbus
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: Valve Software Device 1776
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] VanGogh Data Fabric; Function 7
01:00.0 Non-Volatile memory controller: O2 Micro, Inc. FORESEE E2M2 NVMe SSD (rev 01)
Subsystem: O2 Micro, Inc. Device 0002
Kernel driver in use: nvme
02:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
Subsystem: Valve Software Device 1776
Kernel driver in use: sdhci-pci
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
DeviceName: Broadcom 5762
Subsystem: AzureWave Device 4210
Kernel driver in use: rtw_8822ce
Kernel modules: rtw88_8822ce
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] VanGogh [AMD Custom GPU 0405] (rev ae)
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 0123
Kernel driver in use: amdgpu
Kernel modules: amdgpu
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
Subsystem: Valve Software Device 1776
Kernel driver in use: snd_hda_intel
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP
Subsystem: Valve Software Device 1776
Kernel driver in use: ccp
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] VanGogh USB2
Subsystem: Valve Software Device 1776
Kernel driver in use: xhci_hcd
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] VanGogh USB1
Subsystem: Valve Software Device 1776
Kernel driver in use: xhci_hcd
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 50)
Subsystem: Valve Software Device 1776
Kernel driver in use: snd_pci_acp5x
Kernel modules: snd_pci_acp5x, snd_acp_pci, snd_sof_amd_vangogh
05:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function (rev 61)
Subsystem: Valve Software Device 1776
06:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function
Subsystem: Valve Software Device 1776
|
|
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Sat Jan 04, 2025 12:50 pm Post subject: |
|
|
I forgot to add my aplay -L, so here it is.
Code: | # aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
HD-Audio Generic, Generic Digital
HDMI Audio Output
|
|
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5284 Location: Bavaria
|
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Sat Jan 04, 2025 3:21 pm Post subject: |
|
|
Pietinger,
Thank you for reply.
I enabled this option, but nothing seems to have changed.
Quote: | Does a SteamDeck has no support for this? You could do: Boot with our GentooCD and check with "cpuid | grep x2APIC" if you have: x2APIC: extended xAPIC support = true |
Just ran this command, it stated that "x2APIC: extended xAPIC support = false" multiple times. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5284 Location: Bavaria
|
Posted: Sat Jan 04, 2025 4:51 pm Post subject: |
|
|
Does the sound work if you boot with an UbuntuLiveCD?
If yes, please do a "lsmod" and a "lspci -nnk" and a dmesg; then compare it with your kernel settings (I can see from your settings that you have a lot of experience with kernel configuration) - or provide all 3 files (please use wgetpaste for this).
If no, then ... I think it will not work with Gentoo also. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
mega_flow Tux's lil' helper
Joined: 26 Jun 2016 Posts: 97 Location: Belgium
|
Posted: Sun Jan 05, 2025 6:15 am Post subject: |
|
|
Hi i"m running gentoo + gnome on mij steamdeck
For the sound the deck use the Sound Open modules and sys-firmware/sof-firmware, i use gentoo-kernel-6.6.67
I have install media-sound/alsa-utils and pipewire to make it work (pulseaudio cant switch from headpone to speaker lasttime i try)
snd_seq_dummy
snd_hrtimer
snd_seq
snd_seq_device
snd_soc_acp5x_mach
snd_acp5x_pcm_dma
snd_acp5x_i2s
snd_sof_amd_vangogh
snd_sof_amd_rembrandt
snd_sof_amd_renoir
snd_sof_amd_acp
snd_sof_pci
snd_sof_xtensa_dsp
snd_sof
snd_soc_cs35l41_spi
snd_hda_codec_hdmi
snd_soc_cs35l41
snd_sof_utils
snd_pci_ps
snd_hda_intel
snd_soc_wm_adsp
snd_rpl_pci_acp6x
snd_intel_dspcfg
cs_dsp
snd_soc_nau8821
snd_soc_cs35l41_lib
regmap_spi
snd_pci_acp6x
snd_intel_sdw_acpi
snd_soc_core
snd_hda_codec
snd_pci_acp5x
snd_rn_pci_acp3x
snd_compress
snd_acp_config
snd_hda_core
snd_soc_acpi
ac97_bus
snd_hwdep
snd_pcm_dmaengine
snd_pci_acp3x
snd_pcm
snd_timer
snd
soundcore the modules my kernel use _________________ default/linux/amd64/23.0/no-multilib/systemd gnome:47.2
Legion Slim 5 16ARP9
intel haswell h97i homeserver
SteamDeck |
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Sun Jan 05, 2025 8:06 am Post subject: |
|
|
Pietinger,
Sound does work on Ubuntu.
I did what you asked. lspcis look the same, and I don't really know what to make out of dmesgs...
Could you maybe try please?
lspci, dmesg, lsmod
As for wgetpaste, I couldn't find it in Ubuntu repos |
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Sun Jan 05, 2025 8:19 am Post subject: |
|
|
Also, here are the same commands but executed on my Gentoo.
lspci, dmesg, lsmod |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5284 Location: Bavaria
|
Posted: Sun Jan 05, 2025 12:34 pm Post subject: |
|
|
@mega_flow
your contribution is extremely helpful ... if it already works for you then it should be transferable.
Kaidezee
I quickly saw that this is missing for you (possibly more is missing):
Code: | # CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set |
_________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Mon Jan 06, 2025 9:42 pm Post subject: |
|
|
Quick update; I found a setting to enable IOMMU support in UEFI. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5284 Location: Bavaria
|
Posted: Mon Jan 06, 2025 10:28 pm Post subject: |
|
|
Kaidezee wrote: | Quick update; I found a setting to enable IOMMU support in UEFI. |
Hmmm ... you said you have booted with Ubuntu and there it works ... with the same (old == no iommu) UEFI setting ? ... If yes, then it would be nice to have it, but I don't think it is the reason. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Tue Jan 07, 2025 8:09 am Post subject: |
|
|
Quote: | Hmmm ... you said you have booted with Ubuntu and there it works ... with the same (old == no iommu) UEFI setting ? ... If yes, then it would be nice to have it, but I don't think it is the reason. |
That's what I think, too. |
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Tue Jan 07, 2025 8:14 am Post subject: |
|
|
Also I noticed that at boot kernel says something like "snd_hda_intel: cannot probe for codecs". Not sure if this is relevant. |
|
Back to top |
|
|
Kaidezee n00b
Joined: 25 Dec 2024 Posts: 17
|
Posted: Tue Jan 07, 2025 9:18 am Post subject: |
|
|
Nevermind, I fixed it. Didn't change anything though. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5284 Location: Bavaria
|
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 828 Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.
|
Posted: Tue Jan 07, 2025 6:58 pm Post subject: |
|
|
Could be:
Code: | diff -y ubuntu gentoo | grep -i "soc"
ufs 126976 0 | snd_soc_acp5x_mach 20480 0
snd_soc_acp5x_mach 20480 4 <
snd_soc_cs35l41_spi 12288 2 <
snd_soc_nau8821 61440 2 snd_soc_acp5x_mach <
snd_soc_cs35l41 65536 1 snd_soc_cs35l41_spi <
snd_soc_wm_adsp 49152 1 snd_soc_cs35l41 <
snd_soc_cs35l41_lib 40960 2 snd_soc_cs35l41_spi,snd_soc_c <
cs_dsp 73728 1 snd_soc_wm_adsp | drm_suballoc_helper 12288 1 amdgpu
snd_soc_core 446464 8 snd_acp5x_i2s,snd_soc_nau8821 <
snd_compress 28672 2 snd_soc_wm_adsp,snd_soc_core <
ac97_bus 12288 1 snd_soc_core <
snd_pcm_dmaengine 16384 1 snd_soc_core <
snd_seq_midi_event 16384 1 snd_seq_midi | snd_soc_cs35l41_spi 12288 0
snd_rawmidi 57344 1 snd_seq_midi | snd_soc_cs35l41 40960 1 snd_soc_cs35l41_spi
cfg80211 1372160 2 rtw88_core,mac80211 | snd_soc_wm_adsp 28672 1 snd_soc_cs35l41
snd_pcm 196608 17 snd_sof_amd_acp,snd_soc_nau8 | snd_acp_config 20480 3 snd_pci_acp5x,snd_sof_amd_van
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawm | snd_soc_acpi 12288 2 snd_sof_amd_acp,snd_acp_confi
snd_pci_acp5x 16384 0 | snd_soc_nau8821 45056 1 snd_soc_acp5x_mach
snd_soc_acpi 16384 3 snd_sof_amd_acp,snd_acp_confi <
|
Don't know your kernel config obviously.
EDIT: Code: | $ diff -y ubuntu gentoo | grep -i "sof"
minix 53248 0 | snd_sof_amd_vangogh 12288 0
msdos 16384 0 | snd_sof_amd_acp 36864 1 snd_sof_amd_vangogh
nls_ucs2_utils 8192 1 jfs | snd_sof_pci 16384 1 snd_sof_amd_vangogh
snd_seq_dummy 12288 0 | snd_sof 221184 2 snd_sof_amd_acp,snd_sof_pci
snd_sof_amd_acp63 16384 0 <
snd_sof_amd_vangogh 16384 0 <
snd_sof_amd_rembrandt 16384 0 <
snd_sof_amd_renoir 16384 0 <
snd_sof_amd_acp 61440 4 snd_sof_amd_rembrandt,snd_sof <
snd_sof_pci 24576 4 snd_sof_amd_rembrandt,snd_sof <
snd_sof_xtensa_dsp 12288 1 snd_sof_amd_acp <
snd_sof 397312 2 snd_sof_amd_acp,snd_sof_pci <
snd_sof_utils 16384 1 snd_sof <
snd_amd_sdw_acpi 16384 2 snd_sof_amd_acp,snd_pci_ps <
soundwire_amd 45056 2 snd_sof_amd_acp,snd_pci_ps <
snd_hda_intel 61440 1 | snd_sof_utils 12288 1 snd_sof
gpu_sched 61440 1 amdgpu | snd_sof_xtensa_dsp 12288 1 snd_sof_amd_acp
snd_intel_dspcfg 45056 2 snd_hda_intel,snd_sof | mfd_core 12288 1 amdgpu
snd_pcm 196608 17 snd_sof_amd_acp,snd_soc_nau8 | snd_acp_config 20480 3 snd_pci_acp5x,snd_sof_amd_van
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawm | snd_soc_acpi 12288 2 snd_sof_amd_acp,snd_acp_confi
snd_soc_acpi 16384 3 snd_sof_amd_acp,snd_acp_confi <
isofs 61440 1 <
|
_________________ I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly. |
|
Back to top |
|
|
|