Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733254 - sof-firmware missing files, incorrectly nsame them, wrong location
Summary: sof-firmware missing files, incorrectly nsame them, wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-20 00:14 UTC by B Nice
Modified: 2020-07-30 00:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info,5.97 KB, text/plain)
2020-07-20 00:14 UTC, B Nice
Details
Arch firmware pkg with all necessary files (sof-firmware-1.5.1-1-any.pkg.tar.xz,406.30 KB, application/x-xz)
2020-07-20 00:16 UTC, B Nice
Details
Kernel config (Brute force - needs trimming) (config-5.7.10-gentoofedora_config,217.09 KB, text/plain)
2020-07-29 08:02 UTC, B Nice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description B Nice 2020-07-20 00:14:00 UTC
Installing sof-firmware on a HP Spectre 13 does not allow sound to work.  Must change the names from sof-icl-v1.4.2.ldc  sof-icl-v1.4.2.ri  to sof-icl.ldc  sof-icl.ri.  Must move them from /lib/firmware to /lib/firmware/intel/sof.  Must find 
sof-hda-generic-2ch.tplg elsewhere (Arch has a sof-firmware containing it) and copy it to /lib/firmware/intel/sof-tplg.

Reproducible: Always

Steps to Reproduce:
1.emerge sof-firmware
2.reboot system and then look for dmesg error -2
3.Enjoy not having sound or microphone.
Actual Results:  
sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof/sof-icl.ri failed with error -2

When the sof-icl.ri is in the correct location.

sof-audio-pci 0000:00:1f.3: Direct firmware load for intel/sof-tplg/sof-hda-generic-2ch.tplg failed with error -2
skl_hda_dsp_generic: probe of skl_hda_dsp_generic failed with error -2


Expected Results:  
With files where the kernel apparently needs them to be, sound and microphone works.

The ebuild needs to lose the version numbers and place the files sof-icl.ldc &  sof-icl.ri into /lib/firmware/intel/sof.  It also needs to include sof-hda-generic-2ch.tplg and place it in folder /lib/firmware/intel/sof-tplg
Comment 1 B Nice 2020-07-20 00:14:46 UTC
Created attachment 649910 [details]
emerge --info

My emerge --info
Comment 2 B Nice 2020-07-20 00:16:00 UTC
Created attachment 649912 [details]
Arch firmware pkg with all necessary files

Not sure how the version compares with the gentoo ebuild or the sof-firmware git.
Comment 3 Matt Turner gentoo-dev 2020-07-29 05:41:23 UTC
Typo'd "Closes":

commit aef2b204ecdc156fed875b5cb4f2b3ec66095f32
Author: Matt Turner <mattst88@gentoo.org>
Date:   Tue Jul 28 20:11:27 2020 -0700

    sys-firmware/sof-firmware: Version bump to 1.5.1
    
    Clsoes: https://bugs.gentoo.org/733254
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

Hope you don't mind the non-maintainer commit, but the version in tree appears to be totally unusable.

B Nice: Could you share your kernel config with me? Even the firmware loading successfully, I still have no sound when using SOF.
Comment 4 B Nice 2020-07-29 08:02:44 UTC
Created attachment 651406 [details]
Kernel config (Brute force - needs trimming)

Based on the Fedora 31 config, then minimally editted to work with Gentoo.  Needs some trimming of the excess modules, but I haven't gotten around to it yet.
Comment 5 Matt Turner gentoo-dev 2020-07-30 00:21:11 UTC
(In reply to B Nice from comment #4)
> Created attachment 651406 [details]
> Kernel config (Brute force - needs trimming)
> 
> Based on the Fedora 31 config, then minimally editted to work with Gentoo. 
> Needs some trimming of the excess modules, but I haven't gotten around to it
> yet.

Thanks a bunch! I have working sound now.