Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound through internal speakers on Steam Deck
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Kaidezee
n00b
n00b


Joined: 25 Dec 2024
Posts: 13

PostPosted: Sat Jan 04, 2025 12:47 pm    Post subject: No sound through internal speakers on Steam Deck Reply with quote

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
View user's profile Send private message
Kaidezee
n00b
n00b


Joined: 25 Dec 2024
Posts: 13

PostPosted: Sat Jan 04, 2025 12:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5280
Location: Bavaria

PostPosted: Sat Jan 04, 2025 2:04 pm    Post subject: Reply with quote

I have no experience with a SteamDeck ... but let me try ...

We had some machines where this was important for sound:
Code:
# CONFIG_SERIAL_MULTI_INSTANTIATE is not set

( https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Serial_Bus_Multi_Instantiate )

The next I have seen is this:
Code:
# CONFIG_IOMMU_SUPPORT is not set

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
If yes, THEN do this: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#IOMMU
(you need "Support for Interrupt Remapping" to get x2apic)
Now enable this option: [*] Support x2apic
-> https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Processor_type_and_features
and then you don't need: [ ] Enable MPS table
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Kaidezee
n00b
n00b


Joined: 25 Dec 2024
Posts: 13

PostPosted: Sat Jan 04, 2025 3:21 pm    Post subject: Reply with quote

Pietinger,

Thank you for reply.
Quote:
We had some machines where this was important for sound:
Code:
# CONFIG_SERIAL_MULTI_INSTANTIATE is not set

( https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Current_Kernel#Serial_Bus_Multi_Instantiate )

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5280
Location: Bavaria

PostPosted: Sat Jan 04, 2025 4:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
mega_flow
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2016
Posts: 97
Location: Belgium

PostPosted: Sun Jan 05, 2025 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Kaidezee
n00b
n00b


Joined: 25 Dec 2024
Posts: 13

PostPosted: Sun Jan 05, 2025 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Kaidezee
n00b
n00b


Joined: 25 Dec 2024
Posts: 13

PostPosted: Sun Jan 05, 2025 8:19 am    Post subject: Reply with quote

Also, here are the same commands but executed on my Gentoo.
lspci, dmesg, lsmod
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5280
Location: Bavaria

PostPosted: Sun Jan 05, 2025 12:34 pm    Post subject: Reply with quote

@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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum