Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound card not detected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Mon Apr 02, 2018 3:31 pm    Post subject: Sound card not detected Reply with quote

My sound card is not detected, usually it worked in other gentoo installation I made, but now is not detected.
Output of : lspci | grep -i audio
Code:
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)

aplay -l and cat /proc/asound/cards tells me there are no sound cards, and there are no sound cards in alsamixer. Any suggestion?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21766
Location: here

PostPosted: Mon Apr 02, 2018 3:57 pm    Post subject: Reply with quote

The kernel modules are compiled? You can post output of lspci -v command?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Mon Apr 02, 2018 5:11 pm    Post subject: Reply with quote

This is the part relative to the sound card
Code:
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
   Subsystem: ASUSTeK Computer Inc. 5 Series/3400 Series Chipset High Definition Audio
   Flags: bus master, fast devsel, latency 0, IRQ 24
   Memory at f5ff8000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [50] Power Management version 2
   Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [100] Virtual Channel
   Capabilities: [130] Root Complex Link
   Kernel driver in use: snd_hda_intel


It looks like the driver is loaded

Also, I don't know if it's related, but if I run alsamixer outside of X, it says no mixer found
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Mon Apr 02, 2018 11:28 pm    Post subject: Reply with quote

let's see:
Code:
head -1 /proc/asound/card*/codec*
grep SND_HDA /usr/src/linux/.config
dmesg | grep snd_hda
Back to top
View user's profile Send private message
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Tue Apr 03, 2018 1:11 pm    Post subject: Reply with quote

head -1 /proc/asound/card*/codec*
Code:
head: impossibile aprire '/proc/asound/card*/codec*' per la lettura: No such file or directory


grep SND_HDA /usr/src/linux/.config
Code:
CONFIG_SND_HDA=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_HWDEP=y
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
# CONFIG_SND_HDA_GENERIC is not set
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=y
CONFIG_SND_HDA_PREALLOC_SIZE=64


dmesg | grep snd_hda
Code:
[    0.273204] snd_hda_intel 0000:01:00.1: Disabling MSI
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21766
Location: here

PostPosted: Tue Apr 03, 2018 1:21 pm    Post subject: Reply with quote

Try to enable also CONFIG_SND_HDA_CODEC_REALTEK
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Tue Apr 03, 2018 2:56 pm    Post subject: Reply with quote

Better enable them all as realtek are really common, but not all codecs are realtek, built them all as module, and the right one will be picked
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Apr 03, 2018 7:44 pm    Post subject: Reply with quote

Windmill,

Your sound card is in two pieces.

The bit on the PCI bus that lspci tells you about.
The part that does the digital to analogue conversion for outputs and analogue to digital conversion for inputs, the codec..
That bit is controlled by the kernel driver.

Now it gets hard.
There are all these codecs
Code:
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
# CONFIG_SND_HDA_GENERIC is not set

You need the right one. The wrong one won't work bt its harmless kernel bloat.
Alsamixer will tell you your codec, once it works.

You may as well add in
Code:
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
too.
It will save another kernel build if you find out later that they are needed.
_________________
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
Windmill
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2014
Posts: 105

PostPosted: Thu Apr 05, 2018 10:39 am    Post subject: Reply with quote

Thanks for the help, now it works :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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