View previous topic :: View next topic |
Author |
Message |
megalodon n00b
Joined: 19 Jun 2021 Posts: 19 Location: Rio de Janeiro, Brazil
|
Posted: Wed Dec 15, 2021 3:48 am Post subject: [SOLVED] No sound cards found AMD/B450 |
|
|
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: | $ 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: | $ 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: | $ aplay -l
aplay: device_list:274: no soundcards found...
|
/etc/portage/make.conf
Code: | $ 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: | 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: | $ cat /proc/asound/devices
1: : sequencer
33: : timer
|
>> /usr/src/linux/.config
Code: |
$ 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: | $ groups
//Should output audio
|
If not:
Code: | # 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,
Quote: | ... 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 |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54421 Location: 56N 3W
|
Posted: Wed Dec 15, 2021 9:55 am Post subject: |
|
|
megalodon,
Your kernel support is missing as you don't have any Control or pcm devices in
Code: | 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: | 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
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. |
|
Back to top |
|
|
megalodon n00b
Joined: 19 Jun 2021 Posts: 19 Location: Rio de Janeiro, Brazil
|
Posted: Wed Dec 15, 2021 1:35 pm Post subject: |
|
|
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: | $ 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: | $ 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: | $ aplay -l
aplay: device_list:274: no soundcards found... |
Code: | # 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: | $ 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: | $ 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: | $ cat /sys/class/sound/card*/id
Generic
Generic_1 |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54421 Location: 56N 3W
|
Posted: Wed Dec 15, 2021 2:04 pm Post subject: |
|
|
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 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.
Quote: | 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: | $ 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. |
|
Back to top |
|
|
megalodon n00b
Joined: 19 Jun 2021 Posts: 19 Location: Rio de Janeiro, Brazil
|
Posted: Wed Dec 15, 2021 4:46 pm Post subject: [solved] |
|
|
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: | # useradd -a -G audio my_username |
Quote: |
Which card do you want to use by default?
|
I want to use the analog output, which is now selected by default.
Now it show a dozen of controllers, and is working great as far as I tested.
Thanks man, you deserve a medal |
|
Back to top |
|
|
|
|
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
|
|