View Issue Details

IDProjectCategoryView StatusLast Update
0001421channel: kernel/el9--kernel--OTHER--public2024-02-11 19:04
ReporterJean-Marc LIGER Assigned Totoracat  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Platformx86-64OSRocky LinuxOS Version9.3
Summary0001421: sof-soundwire drivers seem to be missing
DescriptionHi,

I'm using Rocky Linux on a Dell Precision 5480. I've tried both kernel-lt and kernel-ml to get a newer/updated kernel but the sof-soundwire drivers seem to be missing so I don't I have no sound without headphones.

Any help is welcome,
Ligenix
Steps To ReproduceBoot with ELRepo 6.x.y kernel-{lt,m} on a DEll Precision 5480
Additional InformationRocky Linux 9.3 distro kernel has sof-soundwire drivers enabled

ELrepo firmware repository is enabled

Lastest sof firmware has been installed :
dnf install https://kojihub.stream.centos.org/kojifiles/packages/alsa-sof-firmware/2023.12/1.el9/noarch/alsa-sof-firmware-2023.12-1.el9.noarch.rpm

adding modprobe options like snd-intel-dspcfg dsp_driver or snd_hda_intel dmic_detect set to 0 or 1 hasn't any effect
TagsNo tags attached.

Activities

toracat

2024-01-20 12:26

administrator   ~0009516

Missing config option:

CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH=m

toracat

2024-01-22 20:55

administrator   ~0009521

The missing config will be added to the next kernel update for kernel-ml and kernel-lt (x86_64 only).

toracat

2024-01-26 05:01

administrator   ~0009527

In the following packages, the requested kernel option has been enabled (CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH=m) :

kernel-ml-6.7.2-1.el9.elrepo.x86_64.rpm
kernel-lt-6.1.75-1.el9.elrepo.86_64.rpm

Please give them a try and let us know if they work.

Jean-Marc LIGER

2024-01-26 13:48

reporter   ~0009531

kernel-ml-6.7.2-1.el9.elrepo.x86_64.rpm works well
kernel-lt-6.1.75-1.el9.elrepo.86_64.rpm works not, even the soundwire drivers are presents.

ligenix@aleph ~]$ uname -a
Linux aleph 6.1.75-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 25 22:22:50 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

[ligenix@aleph ~]$ lsmod | grep soundwire
soundwire_intel 49152 1 snd_sof_intel_hda_common
soundwire_generic_allocation 16384 1 soundwire_intel
soundwire_cadence 45056 1 soundwire_intel
soundwire_bus 102400 8 snd_soc_rt715_sdca,regmap_sdw,snd_soc_rt1316_sdw,regmap_sdw_mbq,soundwire_intel,snd_soc_rt711_sdca,soundwire_generic_allocation,soundwire_cadence
snd_soc_core 385024 11 snd_soc_rt715_sdca,snd_soc_rt1316_sdw,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_rt711_sdca,snd_sof_probes,snd_soc_dmic,snd_soc_skl_hda_dsp
snd_pcm 155648 18 snd_soc_rt715_sdca,snd_hda_codec_hdmi,snd_soc_rt1316_sdw,snd_hda_intel,snd_usb_audio,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_compress,snd_soc_rt711_sdca,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pcm_dmaengine

toracat

2024-01-26 13:54

administrator   ~0009532

Thanks for testing them.

I wonder what is causing the failure in kernel-lt. Is there any kernel module that is present in kernel-ml but not in kernel-lt?

Jean-Marc LIGER

2024-01-30 01:57

reporter   ~0009543

[ligenix@aleph ~]$ rpm -qa | grep elrepo | sort
elrepo-release-9.1-1.el9.elrepo.noarch
kernel-lt-6.1.75-1.el9.elrepo.x86_64
kernel-lt-core-6.1.75-1.el9.elrepo.x86_64
kernel-lt-modules-6.1.75-1.el9.elrepo.x86_64
kernel-ml-6.7.2-1.el9.elrepo.x86_64
kernel-ml-core-6.7.2-1.el9.elrepo.x86_64
kernel-ml-modules-6.7.2-1.el9.elrepo.x86_64
python3-perf-6.6.12-1.el9.elrepo.x86_64

[ligenix@aleph ~]# modinfo snd-intel-dspcfg
filename: /lib/modules/6.1.75-1.el9.elrepo.x86_64/kernel/sound/hda/snd-intel-dspcfg.ko.xz
import_ns: SND_INTEL_SOUNDWIRE_ACPI
description: Intel DSP config driver
license: GPL v2
srcversion: B1819150488544A68AC042A
depends: snd-intel-sdw-acpi
retpoline: Y
intree: Y
name: snd_intel_dspcfg
vermagic: 6.1.75-1.el9.elrepo.x86_64 SMP preempt mod_unload modversions
parm: dsp_driver:Force the DSP driver for Intel DSP (0=auto, 1=legacy, 2=SST, 3=SOF) (int)

i test all the options without success

Jean-Marc LIGER

2024-02-02 09:55

reporter   ~0009544

kernel-lt-6.1.76-1.el9.elrepo.x86_64 has the same behaviour

toracat

2024-02-08 12:46

administrator   ~0009560

@Jean-Marc LIGER

Could you show us the output from the following commands?

$ lspci | grep -i audio
$ dmesg | grep -E '(snd|sof|soundcore)'
$ lsmod | grep -E "(^snd|sof|soundwire)"

I need to see the results from both kernel-ml and kernel-lt.

Jean-Marc LIGER

2024-02-08 15:09

reporter   ~0009561

You can find the results in the attached files.
kernel-lt-6.1.77.txt (5,615 bytes)   
kernel-ml-6.7.4.txt (6,066 bytes)   

toracat

2024-02-09 17:37

administrator   ~0009562

Thanks.

(1) Kernel module snd_soc_sof_sdw is in kernel-ml but not in kernel-lt. It is built with the kernel option, CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH=m. Although this option is now enabled in both kernels, kernel-lt still does not have snd_soc_sof_sdw.

(2) In the dmesg of kernel-lt, I see "No SoundWire machine driver found". I looked at the source code that generates this line. There seem to be some differences between kernel-ml and kernel-lt. It might be technically possible to backport relevant code from kernel-ml into kernel-lt to enable the soundwire driver.

I was hoping to solve the issue by adjusting the kernel config option(s). However it looks as if we need to play with the source code. Then we are not supposed to modify our source code when building our kernels.

Jean-Marc LIGER

2024-02-10 11:32

reporter   ~0009563

Well, I was thinking something like this because my laptop has MIPI hardware, but kernel-ml works fine now, thanks for your support.

toracat

2024-02-11 19:04

administrator   ~0009564

Now closing as 'resolved'.

Issue History

Date Modified Username Field Change
2024-01-20 08:24 Jean-Marc LIGER New Issue
2024-01-20 08:24 Jean-Marc LIGER Status new => assigned
2024-01-20 08:24 Jean-Marc LIGER Assigned To => toracat
2024-01-20 08:43 pperry Project channel: elrepo/el9 => channel: kernel/el9
2024-01-20 08:43 pperry Category --elrepo--request-for-enhancement-- => General
2024-01-20 12:26 toracat Status assigned => acknowledged
2024-01-20 12:26 toracat Category General => --kernel--OTHER--
2024-01-20 12:26 toracat Note Added: 0009516
2024-01-22 20:55 toracat Note Added: 0009521
2024-01-22 20:56 toracat Status acknowledged => assigned
2024-01-26 05:01 toracat Note Added: 0009527
2024-01-26 05:02 toracat Status assigned => feedback
2024-01-26 13:48 Jean-Marc LIGER Note Added: 0009531
2024-01-26 13:48 Jean-Marc LIGER Status feedback => assigned
2024-01-26 13:54 toracat Note Added: 0009532
2024-01-30 01:57 Jean-Marc LIGER Note Added: 0009543
2024-02-02 09:55 Jean-Marc LIGER Note Added: 0009544
2024-02-08 12:46 toracat Note Added: 0009560
2024-02-08 15:09 Jean-Marc LIGER Note Added: 0009561
2024-02-08 15:09 Jean-Marc LIGER File Added: kernel-lt-6.1.77.txt
2024-02-08 15:09 Jean-Marc LIGER File Added: kernel-ml-6.7.4.txt
2024-02-09 17:37 toracat Note Added: 0009562
2024-02-10 11:32 Jean-Marc LIGER Note Added: 0009563
2024-02-11 19:04 toracat Status assigned => resolved
2024-02-11 19:04 toracat Resolution open => fixed
2024-02-11 19:04 toracat Note Added: 0009564