Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Audio problem
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
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 1:51 pm    Post subject: [SOLVED] Audio problem Reply with quote

I installed gentoo and I am trying to get the audio working. I have an msi rx 570 and I want to use hd audio controller.

output of lspci -vvv | grep -i -A8 audio :

https://pastebin.com/C1DzrCQ7

kernel .config :

https://ufile.io/eqomtz7z



Guides used :


https://wiki.gentoo.org/wiki/ALSA

output of /proc/asound :
----No soundcards----


Last edited by Nitradoz on Sun Jun 13, 2021 4:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 13, 2021 2:21 pm    Post subject: Reply with quote

Apparently you need
Code:


CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m

But you DO have them.
Best to have
linux-firmware
installed.
Maybe it is needed as well.
Also try to make a .conf file in /etc/modprobe.d
Code:

options snd-hda-intel model=auto

see here
https://askubuntu.com/questions/1196947/asus-zenbook-um433d-ubuntu-19-04-no-sound
_________________
:)


Last edited by alamahant on Sun Jun 13, 2021 2:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 2:28 pm    Post subject: Reply with quote

It is installed
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 2:39 pm    Post subject: Reply with quote

still getting dummy input after adding model=generic as well

Code:

cat /proc/asound/cards
--- no soundcards ---


Last edited by Nitradoz on Sun Jun 13, 2021 2:45 pm; edited 2 times in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 13, 2021 2:55 pm    Post subject: Reply with quote

You need to enable driver for your codec chip. (The filesharing site where you put your .config is not working for me, next time please use Gentoo tool wgetpaste.) Easiest way to find out what codec chip you have is to boot from some live CD and take a note.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 13, 2021 2:59 pm    Post subject: Reply with quote

What is the output of
Code:

lsmod | grep snd

Things that come to mind
Code:

emerge -av sof-firmware

After you do as Jaglover suggested plz run the above lsmod.
From livecd
Code:

mount /dev/<root/partition> /mnt
lsmod | grep snd >> /mnt/sound.txt
umount /mnt
reboot

Then you will have all your info in /sound.txt when you boot into ur system.
_________________
:)


Last edited by alamahant on Sun Jun 13, 2021 3:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 3:08 pm    Post subject: Reply with quote

I have booted live into manjaro, mounted my partitions and executed
Code:

 grep -i codec /proc/asound/*/codec* > /mnt/gentoo/sound


but I do not get an output.

NOTE : Audio is working in manjaro
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 13, 2021 3:10 pm    Post subject: Reply with quote

Try this
Code:

lsmod | grep snd

plz see above comment.
_________________
:)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 13, 2021 3:12 pm    Post subject: Reply with quote

Code:
grep -i codec /proc/asound/*/codec*


Just do this and look at output, there is no dire need to redirect it into a file.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 3:18 pm    Post subject: Reply with quote

cool this is my output

Code:

/proc/asound/Generic/codec#0:Codec: Realtek ALC887-VD
/proc/asound/HDMI/codec#0:Codec: ATI R6xx HDMI
/proc/asound/card0/codec#0:Codec: ATI R6xx HDMI
/proc/asound/card1/codec#0:Codec: Realtek ALC887-VD
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 3:23 pm    Post subject: Reply with quote

alamahant wrote:
What is the output of
Code:

lsmod | grep snd

Things that come to mind
Code:

emerge -av sof-firmware

After you do as Jaglover suggested plz run the above lsmod.
From livecd
Code:

mount /dev/<root/partition> /mnt
lsmod | grep snd >> /mnt/sound.txt
umount /mnt
reboot

Then you will have all your info in /sound.txt when you boot into ur system.


done!

output of lsmod :

Code:

snd_usb_audio         311296  2
snd_usbmidi_lib        40960  1 snd_usb_audio
snd_rawmidi            45056  1 snd_usbmidi_lib
snd_seq_device         16384  1 snd_rawmidi
mc                     61440  1 snd_usb_audio
snd_hda_codec_realtek   151552  1
snd_hda_codec_generic    98304  1 snd_hda_codec_realtek
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_codec_hdmi     73728  1
snd_hda_intel          57344  5
snd_intel_dspcfg       28672  1 snd_hda_intel
soundwire_intel        45056  1 snd_intel_dspcfg
snd_hda_codec         167936  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core          106496  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_usb_audio,snd_hda_codec
snd_soc_core          323584  1 soundwire_intel
snd_compress           32768  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm               147456  9 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_compress,
snd_soc_core,snd_hda_core,snd_pcm_dmaengine
snd_timer              40960  1 snd_pcm
snd                   114688  28 snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,
snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,
snd_pcm,snd_rawmidi
soundcore              16384  1 snd


[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 4:04 pm    Post subject: Reply with quote

done I put them in my .config. Compiling now
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 13, 2021 4:07 pm    Post subject: Reply with quote

Maybe download a full kernel config ie from
[url]
https://github.com/archlinux/svntogit-packages/blob/packages/linux/trunk/config
[/url]
save it to a file
and then try to
Code:

grep -i

each of these
Code:

snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,
snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,
snd_pcm,snd_rawmidi

from this config and use the output to recompile the kernel with.
Or you can try with each entry in the FIRST column of your lsmod output.

[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
_________________
:)


Last edited by alamahant on Sun Jun 13, 2021 4:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 4:08 pm    Post subject: Reply with quote

alamahant wrote:
Maybe download a full kernel config ie from
[url]
https://github.com/archlinux/svntogit-packages/blob/packages/linux/trunk/config
[/url]
save it to a file
and then try to
Code:

grep -i

each of these
Code:

snd_hda_codec_generic,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,
snd_usbmidi_lib,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,
snd_pcm,snd_rawmidi

from this config and use the output to recompile the kernel with.


I added them and the kernel has successfully compiled.

[Moderator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 4:13 pm    Post subject: Reply with quote

I rebooted with the new kernel and still
Code:

cat /proc/asound/cards
--- no soundcards ---
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sun Jun 13, 2021 4:16 pm    Post subject: Reply with quote

Nitradoz,

Boot into the new kernel and run
Code:
uname -a

The date and time are the build time of the running kernel. You need to make sure you are running the kernel you think you are.

-- edit --

Code:
/proc/asound/card0/codec#0:Codec: ATI R6xx HDMI
/proc/asound/card1/codec#0:Codec: Realtek ALC887-VD

Your default sound card is HDMI, but it will have lots of outputs.
You need to discover the right output by trial and error.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Nitradoz
n00b
n00b


Joined: 13 Jun 2021
Posts: 21

PostPosted: Sun Jun 13, 2021 4:38 pm    Post subject: Reply with quote

I was on the correct kernel but after rebooting twice the audio was working. Thanks for helping me
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