Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[SOLVED] No sound cards found AMD/B450

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
megalodon
n00b
n00b
Posts: 19
Joined: Sat Jun 19, 2021 2:38 am
Location: Rio de Janeiro, Brazil

[SOLVED] No sound cards found AMD/B450

  • Quote

Post by megalodon » Wed Dec 15, 2021 3:48 am

Hi guys,

It's a fresh install and pulseaudio can't find my sound card. Looks like my Realtek chip is set to Intel HD Audio driver and kernel module, which I think is incorrect.

Hardware:
+ AMD Ryzen 5 5600G
+ MSI B450 Mortar Max
+ Realtek® ALC892/ALC897 Codec

Code: Select all

$ uname -a
Linux orion 5.10.76-gentoo-r1 #1 SMP Mon Dec 13 04:02:21 -00 2021 x86_64 AMD Ryzen 5 5600G with Radeon Graphics AuthenticAMD GNU/Linux
>> lspci -nnk

Code: Select all

$ lspci -nnk 
30:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
        Subsystem: Micro-Star International Co., Ltd. [MSI] Renoir Radeon High Definition Audio Controller [1462:eb89]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

Code: Select all

$ aplay -l
aplay: device_list:274: no soundcards found...
/etc/portage/make.conf

Code: Select all

$ cat /etc/portage/make.conf | grep USE
# Use flags
USE="savedconfig lzma logrotate zsh-completion udev X elogind xinerama pulseaudio jack -systemd -gnome -kde"

Code: Select all

ls -l /dev/snd
total 0
crw-rw----+ 1 root audio 116,  1 Dec 14 22:13 seq
crw-rw----+ 1 root audio 116, 33 Dec 14 22:13 timer

Code: Select all

$ cat /proc/asound/devices
  1:        : sequencer
 33:        : timer
>> /usr/src/linux/.config

Code: Select all

$ cat /usr/src/linux/.config | grep CONFIG_SND_HDA_CODEC_REALTEK
CONFIG_SND_HDA_CODEC_REALTEK=m
# --- EDIT --- #
Steps to check:
+ Is your user in audio group?

Code: Select all

$ groups
//Should output audio
If not:

Code: Select all

# useradd -a -G audio my_username
+ Check the kernel you compiled. In my case, I was not using the right version. I needed to sanitize, then recompile. Also,
... codecs must either be all <M> or all <*> a mix of built in and modules fails by design
Last edited by megalodon on Wed Dec 15, 2021 4:54 pm, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Dec 15, 2021 9:55 am

megalodon,

Your kernel support is missing as you don't have any Control or pcm devices in

Code: Select all

ls -l /dev/snd
total 0
crw-rw----+ 1 root audio 116,  1 Dec 14 22:13 seq
crw-rw----+ 1 root audio 116, 33 Dec 14 22:13 timer 
snd-hda-intel and its codecs must either be all <M> or all <*> a mix of built in and modules fails by design.

-- edit --

I've just seen your .config.

Code: Select all

CONFIG_SND_HDA=m
CONFIG_SND_HDA_CODEC_REALTEK=m
That looks good.

Are you running the kernel you think you are?
What is the date and time in

Code: Select all

uname -a
That's the build date/time of the runining kernel. If you have made a newer one, its not being used.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
megalodon
n00b
n00b
Posts: 19
Joined: Sat Jun 19, 2021 2:38 am
Location: Rio de Janeiro, Brazil

  • Quote

Post by megalodon » Wed Dec 15, 2021 1:35 pm

Note:

As well observed by @NeddySeagoon, I was not using the kernel I thought, so I sanitized the kernel sources, then build it again, and things changed.
---

NeddySeagoon,

this is the new scenario:

Code: Select all

$ uname -a 
Linux orion 5.10.76-gentoo-r1 #1 SMP Wed Dec 15 12:32:45 -00 2021 x86_64 AMD Ryzen 5 5600G with Radeon Graphics AuthenticAMD GNU/Linu
>> lspci -nnk

Code: Select all

$ lspci -nnk
30:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Renoir Radeon High Definition Audio Controller [1462:eb89]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
30:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3]
	Subsystem: Micro-Star International Co., Ltd. [MSI] Family 17h (Models 10h-1fh) HD Audio Controller [1462:eb89]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
* I forgot to list one audio device, but it was there on dpaste

I also noted now that $ aplay -l != # aplay -l

Code: Select all

$ aplay -l 
aplay: device_list:274: no soundcards found...

Code: Select all

# aplay -l
**** List of PLAYBACK Hardware Devices ****
XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid 1000! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
* The device name ALC892 Digital is correct according to the motherboard description

Code: Select all

$ ls -l /dev/snd
total 0
drwxr-xr-x 2 root root       80 Dec 15 12:36 by-path
crw-rw---- 1 root audio 116,  5 Dec 15 12:36 controlC0
crw-rw---- 1 root audio 116, 11 Dec 15 12:36 controlC1
crw-rw---- 1 root audio 116,  4 Dec 15 12:36 hwC0D0
crw-rw---- 1 root audio 116, 10 Dec 15 12:36 hwC1D0
crw-rw---- 1 root audio 116,  2 Dec 15 12:36 pcmC0D3p
crw-rw---- 1 root audio 116,  3 Dec 15 12:36 pcmC0D7p
crw-rw---- 1 root audio 116,  7 Dec 15 12:36 pcmC1D0c
crw-rw---- 1 root audio 116,  6 Dec 15 12:36 pcmC1D0p
crw-rw---- 1 root audio 116,  8 Dec 15 12:36 pcmC1D1p
crw-rw---- 1 root audio 116,  9 Dec 15 12:36 pcmC1D2c
crw-rw---- 1 root audio 116,  1 Dec 15 12:36 seq
crw-rw---- 1 root audio 116, 33 Dec 15 12:36 timer

Code: Select all

$ cat /proc/asound/devices 
  2: [ 0- 3]: digital audio playback
  3: [ 0- 7]: digital audio playback
  4: [ 0- 0]: hardware dependent
  5: [ 0]   : control
  6: [ 1- 0]: digital audio playback
  7: [ 1- 0]: digital audio capture
  8: [ 1- 1]: digital audio playback
  9: [ 1- 2]: digital audio capture
 10: [ 1- 0]: hardware dependent
 11: [ 1]   : control
 33:        : timer

Code: Select all

$ cat /sys/class/sound/card*/id
Generic
Generic_1
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56104
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Dec 15, 2021 2:04 pm

megalodon,

You have two sound cards, one on the video card that drives HDMI/DP sound to your display and one on the motherboard that drives your analogue output.

From /proc/asound/devices, your video card is the default output card.
Which card do you want to use by default?

What does

Code: Select all

alsamixer -c1
show?

Pulseaudio is a wrapper around alsa. I don't use it but being a wrapper it can't work until the thing it wraps works.
I also noted now that $ aplay -l != # aplay -l
Is your normal user in the audio group?

Only root and audio group members have access to the sound hardware.

Code: Select all

$ ls /dev/snd -l
total 0
crw-rw---- 1 root audio 116,  7 Nov  6 18:14 controlC0
crw-rw---- 1 root audio 116, 12 Nov  6 18:14 controlC1
crw-rw---- 1 root audio 116, 15 Nov 19 14:35 controlC2
...
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
megalodon
n00b
n00b
Posts: 19
Joined: Sat Jun 19, 2021 2:38 am
Location: Rio de Janeiro, Brazil

[solved]

  • Quote

Post by megalodon » Wed Dec 15, 2021 4:46 pm

Solved!
NeddySeagoon wrote:Is your normal user in the audio group?
Only root and audio group members have access to the sound hardware.
No, shame on me :(
I think this was the last step

Code: Select all

# useradd -a -G audio my_username
Which card do you want to use by default?
I want to use the analog output, which is now selected by default.


What does

Code: Select all

alsamixer -c1
show?
Now it show a dozen of controllers, and is working great as far as I tested.

Thanks man, you deserve a medal :D
Top
Post Reply

5 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic