Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No audio on fresh install/On-board graphics not detected
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
iegfb
n00b
n00b


Joined: 19 Dec 2021
Posts: 2

PostPosted: Sun Dec 19, 2021 2:08 pm    Post subject: No audio on fresh install/On-board graphics not detected Reply with quote

Hello,

I've installed gentoo on my laptop a couple of days ago and haven't managed to get audio working yet, I have a zbook g7 with two video cards, an integrated intel one and an nvidia one, it seems like only the nvidia one is set up properly and is being detected as alsa defaults to its hdmi output while I'm fairly certain that the audio should work with the integrated one. Initially I tried configuring my own kernel but after struggling and recompiling it several times and not getting some component or another working properly, eventually I just ended up doing a genkernel all

It seems to me that the issue is related to drivers or modules not being loaded up properly as I can see some errors in dmesg but I am clueless at this point, below you can see some details about my setup.

Code:
uname -r
5.10.76-gentoo-r1-x86_64

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

Code:
$dmesg | grep audio
[    7.736864] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[    8.030172] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    8.030187] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    8.030308] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
[    8.031117] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    8.031368] sof-audio-pci 0000:00:1f.3: init of i915 and HDMI codec failed
[    8.033926] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[    8.135533] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 1
[    8.135535] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    8.135538] sof-audio-pci 0000:00:1f.3: DMICs detected in NHLT tables: 4
[    8.135561] sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof/sof-cml.ri failed with error -2
[    8.135563] sof-audio-pci 0000:00:1f.3: error: request firmware intel/sof/sof-cml.ri failed err: -2
[    8.135564] sof-audio-pci 0000:00:1f.3: error: failed to load DSP firmware -2
[    8.135832] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -2

Code:
$cat /etc/portage/make.conf
VIDEO_CARDS="intel i965 iris nvidia"
USE="X udev bluetooth elogind alsa jack pulseaudio -systemd -wayland"

Code:
$aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=4
    HDA NVidia, HDMI 4
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=5
    HDA NVidia, HDMI 5
    HDMI Audio Output
usbstream:CARD=NVidia
    HDA NVidia
    USB Stream Output

Code:
$cat /proc/asound/devices
proc/asound/card0/codec#0:Codec: Nvidia GPU 94 HDMI/DP
/proc/asound/hwdep:00-00: HDA Codec 0
/proc/asound/NVidia/codec#0:Codec: Nvidia GPU 94 HDMI/DP

Code:
$ls /sys/class/sound/
card0
controlC0
hwC0D0
pcmC0D10p
pcmC0D11p
pcmC0D3p
pcmC0D7p
pcmC0D8p
pcmC0D9p
timer

Code:
$cat /sys/class/sound/card0/id
NVidia

Code:
$lspci -nnk | grep audio
00:1f.3 Multimedia audio controller [0401]: Intel Corporation Comet Lake PCH cAVS [8086:06c8]
    Kernel driver in use: sof-audio-pci
    Kernel modules: snd_hda_intel, snd_soc_skl, snd_sof_pci

Code:
$lspci -nnk | grep Audio
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10fa] (rev a1)

Code:
$lsmod | grep snd_hda_intel
snd_hda_intel          57344  1
snd_intel_dspcfg       28672  4 snd_hda_intel,snd_sof_pci,snd_sof_intel_hda_common,snd_soc_skl
snd_hda_codec         172032  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
snd_hda_core          110592  10 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda
snd_pcm               135168  11 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
snd                   110592  12 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm

Code:
$grep SND_HDA /usr/src/linux/.config
CONFIG_SND_HDA=m
CONFIG_SND_HDA_GENERIC_LEDS=y
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=0
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=m
CONFIG_SND_HDA_CODEC_ANALOG=m
CONFIG_SND_HDA_CODEC_SIGMATEL=m
CONFIG_SND_HDA_CODEC_VIA=m
CONFIG_SND_HDA_CODEC_HDMI=m
CONFIG_SND_HDA_CODEC_CIRRUS=m
CONFIG_SND_HDA_CODEC_CONEXANT=m
CONFIG_SND_HDA_CODEC_CA0110=m
CONFIG_SND_HDA_CODEC_CA0132=m
CONFIG_SND_HDA_CODEC_CA0132_DSP=y
CONFIG_SND_HDA_CODEC_CMEDIA=m
CONFIG_SND_HDA_CODEC_SI3054=m
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=1
# CONFIG_SND_HDA_INTEL_HDMI_SILENT_STREAM is not set
CONFIG_SND_HDA_CORE=m
CONFIG_SND_HDA_DSP_LOADER=y
CONFIG_SND_HDA_COMPONENT=y
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_EXT_CORE=m
CONFIG_SND_HDA_PREALLOC_SIZE=4096

Code:
$cat /proc/asound/cards
 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xe4000000 irq 17


Any assistance will be appreciated, thank you in advance
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 19, 2021 3:31 pm    Post subject: Reply with quote

iegfb,

Welcome to Gentoo.

Code:
[    8.135561] sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof/sof-cml.ri failed with error -2
[    8.135563] sof-audio-pci 0000:00:1f.3: error: request firmware intel/sof/sof-cml.ri failed err: -2
[    8.135564] sof-audio-pci 0000:00:1f.3: error: failed to load DSP firmware -2
[    8.135832] sof-audio-pci 0000:00:1f.3: error: sof_probe_work failed err: -2


You need some firmware. The first missing file is called intel/sof/sof-cml.ri

Rooting about in my favourite search engine suggests that you need sys-firmware/sof-firmware.
_________________
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
iegfb
n00b
n00b


Joined: 19 Dec 2021
Posts: 2

PostPosted: Sun Dec 19, 2021 4:07 pm    Post subject: Reply with quote

NeddySeagoon wrote:

You need some firmware. The first missing file is called intel/sof/sof-cml.ri

Rooting about in my favourite search engine suggests that you need sys-firmware/sof-firmware.


Well yeah, that was it, now I feel real dumb :lol:

Thank you very much for your help
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 19, 2021 5:26 pm    Post subject: Reply with quote

iegfb,

That's your first Gentoo learning experience. There will be lots more.
Worse, when you know it all, it gets changed. :)

Experience is what you get just after you needed it, it's not dumb.
_________________
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
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