Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no soundcards found
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
GGekko
n00b
n00b


Joined: 09 Apr 2021
Posts: 4

PostPosted: Fri Apr 09, 2021 6:17 pm    Post subject: no soundcards found Reply with quote

Hi, I cant seem to get my soundcard up and running.

lspci -k
Code:
Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev20)
Subsystem: Lenovo Tiger Lake-LP Smart Sound Technology Audio Controller
Kernel driver in use:snd_hda_intel


kernel .config
https://dpaste.com/DRGQF57YT

aplay -l returns
Code:
aplay: device_list:274: no soundcards found...


Cant find my card in alsamixer either. So I guess I'm missing something in my kernel.
I am fairly new to gentoo, any help with troubleshooting would be greatly appreciated.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3939

PostPosted: Fri Apr 09, 2021 6:25 pm    Post subject: Reply with quote

Hi
Welcome to Gentoo Forums
Please try
Code:

emerge -av sys-firmware/sof-firmware linux-firmware intel-microcode
iucode_tool -S --write-earlyfw=/boot/early_ucode.cpio /lib/firmware/intel-ucode/*

Update initramfs and grub.
Reboot
_________________
:)
Back to top
View user's profile Send private message
GGekko
n00b
n00b


Joined: 09 Apr 2021
Posts: 4

PostPosted: Fri Apr 09, 2021 6:44 pm    Post subject: Reply with quote

alamahant wrote:
Hi
Welcome to Gentoo Forums
Please try
Code:

emerge -av sys-firmware/sof-firmware linux-firmware intel-microcode
iucode_tool -S --write-earlyfw=/boot/early_ucode.cpio /lib/firmware/intel-ucode/*

Update initramfs and grub.
Reboot


Thank you for the fast reply.

Emerged the packages and ran the iucode tool. Ran grub-mkconfig -o /boot/grub/grub.cfg and did a reboot. I dont have an initramfs.
same output from aplay -l
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3939

PostPosted: Fri Apr 09, 2021 7:02 pm    Post subject: Reply with quote

Maybe you need an initramfs to load the firmware...
_________________
:)
Back to top
View user's profile Send private message
GGekko
n00b
n00b


Joined: 09 Apr 2021
Posts: 4

PostPosted: Fri Apr 09, 2021 8:08 pm    Post subject: Reply with quote

Ok. I added support for initramfs in kernel, updated grub and:
Code:
gbox /boot # genkernel --install --firmware --kernel-config=/usr/src/linux/.config initramfs
* Gentoo Linux Genkernel; Version 4.2.1
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --install --firmware --kernel-config=/usr/src/linux/.config initramfs

* Working with Linux kernel 5.10.27-gentoo for x86_64
* Using kernel config file '/usr/src/linux-5.10.27-gentoo/.config' ...

* Current kernel's LOCALVERSION is set to ''; Will ignore set --kernel-localversion value '-x86_64' because kernel was not build ...

* initramfs: >> Initializing ...
*         >> Appending devices cpio data ...
*         >> Appending base_layout cpio data ...
*         >> Appending util-linux cpio data ...
*         >> Appending eudev cpio data ...
*         >> Appending devicemanager cpio data ...
*         >> Appending auxiliary cpio data ...
*         >> Appending busybox cpio data ...
*         >> Appending modprobed cpio data ...
*         >> Appending firmware cpio data ...
*         >> Appending modules cpio data ...
*                 modules: 0 modules copied. Is that correct?
*         >> Appending linker cpio data ...
*         >> Deduping cpio ...
*         >> Pre-generating initramfs' /etc/ld.so.cache ...
*         >> Compressing cpio data (.xz) ...
*
* You will find the initramfs in '/boot/initramfs-5.10.27-gentoo.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:

* Do NOT report kernel bugs as genkernel bugs unless your bug
* is about the default genkernel configuration...
*
* Make sure you have the latest ~arch genkernel before reporting bugs.


reboot yet again, initramfs seems to load at boot, still no soundcard.

Code:
*         >> Appending modules cpio data ...
*                 modules: 0 modules copied. Is that correct?


Is this the issue?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Apr 09, 2021 8:14 pm    Post subject: Reply with quote

GGekko,

The sound driver is in two parts. The first part
Code:
CONFIG_SND_HDA_INTEL=y
provides the snd_hda_intel driver.

You also need
Code:
# CONFIG_SND_HDA_CODEC_HDMI is not set
for digital sound outputs.
Code:
# CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set
is a good idea for digital outputs too. It avoids the first few seconds of the sound stream to a digital output being lost,.

For analogue audio, you need an analogue codec too.
Code:
# 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
and they are all off.

Build all the codecs in. When one works, it will be listed in alsamixer.
_________________
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
GGekko
n00b
n00b


Joined: 09 Apr 2021
Posts: 4

PostPosted: Fri Apr 09, 2021 8:37 pm    Post subject: Reply with quote

Thank you NeddySeagoon. Seems to work fine now. Cheers.
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