Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel  (Read 4411 times)

Offline Teriarch

  • User
  • Posts: 51
[EN] Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« on: 2022/12/04, 01:07:13 »
The kernel configuration file config-6.0.11-1-siduction-amd64 reads:

# CONFIG_SOUNDWIRE is not set

As a result some modern Laptops (ThinkPad T14s Gen 2 Intel, etc.) and Desktops
using e.g. SST TigerlakeL-P Audio Chips are not fully audio supported (esp. digital
mics). I suppose former and supposedly subsequent kernel releases are affected.
Since recent Linux kernels definitely support these chips, why is it turned off?
It's a kernel configuration issue, the line should read:

CONFIG_SOUNDWIRE=y with subsequent related lines as:
CONFIG_REGMAP_SOUNDWIRE=m
CONFIG_REGMAP_SOUNDWIRE_MBQ=m
CONFIG_SND_INTEL_SOUNDWIRE_ACPI=m
CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH=m
CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE_LINK_BASE LINE=m
CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE=m
CONFIG_SOUNDWIRE=y
CONFIG_SOUNDWIRE_CADENCE=m
CONFIG_SOUNDWIRE_INTEL=m
CONFIG_SOUNDWIRE_GENERIC_ALLOCATION=m

Maybe you can correct the missing parts in the next kernel release.

BR

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.948
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #1 on: 2022/12/04, 12:50:37 »
Thanks for reporting, should be fixed with kernel 6.0.11-2-siduction-amd64.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline Teriarch

  • User
  • Posts: 51
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #2 on: 2022/12/04, 18:18:25 »
ThX for the quick fix, but we are still missing out on some drivers, e.g.
# CONFIG_SND_SOC_SOF_HDA_LINK is not set
and  we should have
CONFIG_SOUND_SOC_SOF_HDA=m in order to include snd-sof-intel-hda.ko.

I suggest I pull the kernel sources and try for myself until it works on my ThinkPad.
I am confident, because it already works for other kernel configs.

Once I succeed I report back and keep you informed about the changes.
And keep up with the good work!

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.948
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #3 on: 2022/12/04, 18:36:00 »
CONFIG_SOUND_SOC_SOF_HDA does not exist!
And even CONFIG_SND_SOC_SOF_HDA does not exist
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline Teriarch

  • User
  • Posts: 51
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #4 on: 2022/12/04, 18:53:41 »
< # CONFIG_SOUND_SOC_SOF_HDA_LINK is not set
A typo, sorry.

< And even CONFIG_SND_SOC_SOF_HDA does not exist


It pops into existence once the CONFIG_SOUND_SOC_SOF_HDA_LINK
option is set, crazy I know (I used: make menuconfig).

Offline Teriarch

  • User
  • Posts: 51
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #5 on: 2022/12/05, 21:40:29 »
Dear Admin,

here are the additional changes to be made for the 6.0.11-2-siduction-amd64 config version:

Main menuconfig:
   -> Device Drivers  
      -> Sound card support  
         -> Advanced Linux Sound Architecture
            -> ALSA for SoC audio support
               -> Sound Open Firmware Support
                  -> SOF ACPI enumeration support <m>
                     (CONFIG_SND_SOC_SOF_ACPI=m)
                  -> SOF support for Baytrail, Braswell and Cherrytrail (NEW) <m>
                     (CONFIG_SND_SOC_SOF_BAYTRAIL=m)
                  -> SOF support for Broadwell <m>
                     (CONFIG_SND_SOC_SOF_BROADWELL=m)
                  -> SOF support for AMD audio DSPs <m>
                     (CONFIG_SND_SOC_SOF_AMD_TOPLEVEL=m)
                  -> SOF support for HDA Links(HDA/HDMI) <*>
                     (CONFIG_SND_SOC_SOF_HDA_LINK=y)
                  -> SOF support for HDAudio codecs <*>
                     (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC=y)
              -> ASoC Simple sound card support <m>
                 (CONFIG_SND_SIMPLE_CARD_UTILS=m,
                  CONFIG_SND_SIMPLE_CARD=m)

The following settings are then implied (as far as I can tell):

CONFIG_SND_SOC_SOF_HDA=m
CONFIG_SND_SOC_SOF_ACPI_DEV=m
CONFIG_SND_SOC_SOF_PROBE_WORK_QUEUE=y

I tried the resulting modules on 3 HW devices including Skylake and Tigerlake
SoC Chipsets. The digital microphone and speakers are working well together with
the HDMI sound ports. If you decide to include the changes with the next release
other users with appropriate HW might also profit. One last note:

GRUB_CMDLINE_LINUX_DEFAULT="...snd-intel-dspcfg.dsp_driver=3"

is sometimes to be included into /etc/default/grub (0 means auto, 1 is legacy and 3 is
Sound Open Firmware (SOF)) since the HW detection is not that reliable.

BR

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.948
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #6 on: 2022/12/05, 22:32:56 »
Added the missing configs to 6.0.11-3.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline Teriarch

  • User
  • Posts: 51
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #7 on: 2022/12/06, 00:40:33 »
Thank you so much, it works like a charm. The sound chips are either supported by legacy hda
or SOF drivers, sometimes by both. Unfortunately every now and then the software takes the wrong pick
and only the speakers work (digital Mics are never supported by legacy drivers). The sound cards
are created by the kernel within the dev file system depending on whether snd_hda_intel or snd_soc_dmic
takes over. If something goes wrong on that level, neither pulseaudio nor pipewire can do anything about
it in userspace. It's very frustrating for the end user. Anyway, I am very happy that it works now.

I am looking forward to the experience of other users. And thx again for your effort and help.
BR


Offline SueS

  • User
  • Posts: 6
    • http://lhresources.wordpress.com/
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #8 on: 2022/12/06, 04:20:26 »
That also worked a treat on my new XPS 17 9720 laptop with an Alderlake sound card. Thank you for your hard work gentlemen! :-)

Sue.

Offline Teriarch

  • User
  • Posts: 51
Re: Sound Drivers missing in 6.0.11-1-siduction-amd64 kernel
« Reply #9 on: 2022/12/11, 20:59:36 »
And while we're at it:

Some Intel integrated graphic chip sets including audio HDMI sound do not play well with
enabled IOMMU Passthru (which is the default for Siduction kernels), see e.g.:
<https://askubuntu.com/questions/1403575/hdmi-audio-issue-ubuntu-22-04>

Hence in such cases GRUB_CMDLINE_LINUX_DEFAULT="...intel_iommu=on,igfx_off..."
should also be included to activate HDMI sound. This prevents the internal
graphics card from being passed thru.