Soundcard not detected on Minisforum Z83-F

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Soundcard not detected on Minisforum Z83-F

#1 Post by rara »

Hello everybody,
I installed Debian Main in september on a Minisforum Z83-F, and everything works except for the sound (earphones).
The soundcard is not usable. The HDMI output is the only one. The audio mixer shows me only the dummy output. I have checked in a bunch of forums what people with similar problems did.
Here is what i have found out:

Code: Select all

/proc/asound/cards shows only: Intel HDMI/DP LPE Audio
journalctl -k | grep -Ei "snd|sound|audio|multi" gets me:

Code: Select all

HDaudio controller not detected, using LPE audio instead
To check what soundcard there is, i did:

Code: Select all

sudo lsmod | grep -Ei "snd|sound|audio|multi"
Result:
snd_seq_dummy          16384  0
snd_hrtimer            16384  1
snd_seq                90112  7 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
snd_hdmi_lpe_audio     32768  1
snd_soc_rt5645        180224  0
snd_soc_rl6231         20480  1 snd_soc_rt5645
snd_soc_core          352256  1 snd_soc_rt5645
snd_compress           28672  1 snd_soc_core
snd_pcm               159744  4 
snd_compress,snd_hdmi_lpe_audio,snd_soc_core,snd_soc_rt5645
snd_timer              49152  3 snd_seq,snd_hrtimer,snd_pcm
snd                   126976  11 
snd_seq,snd_seq_device,snd_timer,snd_compress,snd_hdmi_lpe_audio,snd_soc_core,snd_pcm
soundcore              16384  1 snd
That seems to indicate the soundcard is rt5645. rt should stand for Realtek.
The driver seems to be there, too:

Code: Select all

ls -l /lib/modules/`uname -r`/kernel/sound/soc/codecs/snd-soc-rt5645*
-rw-r--r-- 1 root root 298699 30. Sep 21:08 
/lib/modules/6.1.0-26-amd64/kernel/sound/soc/codecs/snd-soc-rt5645.ko
There are some codecs / config files, too:

Code: Select all

/usr/share/alsa/ucm2/codecs/rt5645/
In 2019, the kernel was lacking something for this soundcard, but that should have been fixed:
https://elrepo.org/bugs/view.php?id=900

In 2017 somebody posted this:
I have found the solution which makes audio work on my T102HA. The problem is actually in the HDMI audio driver and it can be worked around by preventing that driver from loading. This should be doable by adding the following like to /etc/modprobe.d/blacklist.conf:
blacklist snd_hdmi_lpe_audio
Once you have that, reboot and verify that module snd_hdmi_lpe_audio is not loaded (lsmod |grep snd_hdmi_lpe_audio) (if it is then find a working approach to blacklist it, I don't have Ubuntu actually). After you get it to not load, pulseaudio should run without crashing and audio should work. You may need to use pavucontrol to select speakers instead of headphones.
https://ubuntuforums.org/showthread.php?t=2358027
I have tried that, but it doesn't work.

This related thread about firmware and old kernels sounds interesting:
viewtopic.php?t=157908

In 2021 somebody posted:
Make sure alsa-ucm-conf and sof-firmware are installed. I don't think any of these HDMI devices are your real sound card and you need sof-firmware to get your analog output running. Should you still want to try you can try to force a profile manually with e.g. pacmd set-card-profile
alsa_card.pci-0000_00_02.0-platform-hdmi-lpe-audio output:hdmi-stereo
but I still rather think that your real card is hidden by the lack of sof-firmware (check dmesg)
https://bbs.archlinux.org/viewtopic.php?id=267492
But that didn't work in that case. I can't even install sof-firmware, to my understanding because it is not included in Debian Main: https://packages.debian.org/bullseye/fi ... sof-signed

In the BIOS i can only choose between two variants of the HDMI/DP LPE Audio thing. One is pci and the other acpi. Switching there hasn't changed anything. In the forums some people were successful with setting
it to pci. Then the other sound card showed up. I don't seet it, tough, neither in alsamixer.

Here is some background info that seems relevant:
https://thesofproject.github.io/latest/ ... ction.html

One of the first things i did was to exchange pulseaudio for pipewire, as somebody suggested that that is a current package that replaces pulseaudio and might make things work. No success here, though.

Any hints anybody?

Aki
Global Moderator
Global Moderator
Posts: 3985
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 109 times
Been thanked: 525 times

Re: Soundcard not detected on Minisforum Z83-F

#2 Post by Aki »

Hello,

What is your Debian version ? You can verify with the following command:

Code: Select all

$ cat /etc/debian_version
--
note: please use code tags for code, commands or logs; this time I modified your previous post for you.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#3 Post by rara »

Current version. The one that was stable in september. Did at least one update since then. But am currently not using that computer, due to the sound problem. See also the above posted output, it's kernel 6.1.0-26:

Code: Select all

ls -l /lib/modules/`uname -r`/kernel/sound/soc/codecs/snd-soc-rt5645*
-rw-r--r-- 1 root root 298699 30. Sep 21:08 
/lib/modules/6.1.0-26-amd64/kernel/sound/soc/codecs/snd-soc-rt5645.ko

User avatar
stevepusser
Posts: 13045
Joined: 2009-10-06 05:53
Has thanked: 45 times
Been thanked: 93 times

Re: Soundcard not detected on Minisforum Z83-F

#4 Post by stevepusser »

Certainly firmware-sof-signed can be installed in Bookworm:

https://wiki.debian.org/Firmware
https://packages.debian.org/bookworm/fi ... sof-signed

That begs the question, do you have it installed or not?
MX Linux packager and developer

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2384
Joined: 2010-06-07 16:59
Has thanked: 45 times
Been thanked: 261 times

Re: Soundcard not detected on Minisforum Z83-F

#5 Post by FreewheelinFrank »

Could we have output of the following please (you may need to install package inxi).

Code: Select all

$ inxi -Fxxxrz

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#6 Post by rara »

Here is what seems to me the relevant output of sudo inxi -Fxxxrz:

Code: Select all

System:
  Kernel: 6.1.0-27-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
    v: 4.18.0 dm: LightDM v: 1.26.0 Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: BESSTAR (HK) product: Z83-F v: N/A serial: N/A
  Mobo: BESSTAR Tech model: T3 MRD serial: N/A UEFI: American Megatrends
    v: BLT-BI-MINIPC-X5R110-CC55B-BU-101-A date: 08/13/2019
CPU:
  Info: quad core model: Intel Atom x5-Z8350 bits: 64 type: MCP
    smt: <unsupported> arch: Airmont rev: 4 cache: L1: 224 KiB L2: 2 MiB
  Speed (MHz): avg: 1761 high: 1823 min/max: 480/1920 volts: 1.2 V
    ext-clock: 80 MHz cores: 1: 1749 2: 1722 3: 1823 4: 1753 bogomips: 11520
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Audio:
  Device-1: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series
    Imaging Unit driver: intel_atomisp2_pm v: kernel bus-ID: 00:03.0
    chip-ID: 8086:22b8 class-ID: 0480
  Device-2: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx
    Series Low Power Engine Audio driver: N/A bus-ID: 00:15.0
    chip-ID: 8086:22a8 class-ID: 0401
  API: ALSA v: k6.1.0-27-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: n/a (root, process) with:
    1: pipewire-pulse status: active 2: wireplumber status: active
    3: pipewire-alsa type: plugin
firmware-sof-signed was not in my repository, as i didn't enable non-free firmware. Now i have added non-free-firmware to /etc/apt/sources.list, but still apt can't find it.
I have meanwhile upgraded to kernel 6.1.0-28, by the way.

arzgi
Posts: 1488
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 66 times

Re: Soundcard not detected on Minisforum Z83-F

#7 Post by arzgi »

Did you do

Code: Select all

sudo apt update
after enabling non-free?


If aftter that you still can't install firmware-sof-signed post your sources.list in code tags.

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#8 Post by rara »

Thanks, firmware-sof-signed is now installed. But without fixing the sound problem.
I can blacklist snd_hdmi_lpe_audio, and now it doesn't show up in alsamixer anymore. I can enter the name of a soundcard there, as an alternative to the default, but neither snd_soc_rt5645 nor rt5645 work. Still only dummy output in pavucontrol. Is the name of my soundcard different?
I have even gone back from pipewire to pulseaudio, but without success.

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#9 Post by rara »

I have now also in vain added the line

Code: Select all

options snd-intel-dspcfg dsp_driver=2
to

Code: Select all

/etc/modprobe.d/inteldsp.conf
Now there's driver 1 and 2 there, but still no sound card found. Not even the HDMI one anymore.
I can blacklist or enable snd_hdmi_lpe_audio; use pipewire or pulseaudio; enable options snd-intel-dspcfg dsp_driver=2 and options snd-intel-dspcfg dsp_driver=1, both or only one of them. Could any of these combinations do the trick? I haven't tried all possibilities there.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2384
Joined: 2010-06-07 16:59
Has thanked: 45 times
Been thanked: 261 times

Re: Soundcard not detected on Minisforum Z83-F

#10 Post by FreewheelinFrank »

rara wrote: 2024-11-27 17:16 I have now also in vain added the line

Code: Select all

options snd-intel-dspcfg dsp_driver=2
to

Code: Select all

/etc/modprobe.d/inteldsp.conf
Now there's driver 1 and 2 there, but still no sound card found. Not even the HDMI one anymore.
I can blacklist or enable snd_hdmi_lpe_audio; use pipewire or pulseaudio; enable options snd-intel-dspcfg dsp_driver=2 and options snd-intel-dspcfg dsp_driver=1, both or only one of them. Could any of these combinations do the trick? I haven't tried all possibilities there.
If you're going to try the Intel driver, install firmware-intel-sound from Backports - that will give it the best chance of working.

https://packages.debian.org/bookworm-ba ... ntel-sound

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#11 Post by rara »

That package has already been installed.
I don't understand that with the Intel driver. I just added that line
options snd-intel-dspcfg dsp_driver=2
to that file, i didn't do anything with any driver itself.

Basic question: Do i need to circumvent the HDMI LPE and tell the computer what soundcard there is, or might there be a way to go with HDMI LPE? In other words: Should i keep snd_hdmi_lpe_audio blacklisted while i am trying whatever?

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2384
Joined: 2010-06-07 16:59
Has thanked: 45 times
Been thanked: 261 times

Re: Soundcard not detected on Minisforum Z83-F

#12 Post by FreewheelinFrank »

rara wrote: 2024-11-27 19:33 That package has already been installed.
I don't understand that with the Intel driver. I just added that line
options snd-intel-dspcfg dsp_driver=2
to that file, i didn't do anything with any driver itself.

Basic question: Do i need to circumvent the HDMI LPE and tell the computer what soundcard there is, or might there be a way to go with HDMI LPE? In other words: Should i keep snd_hdmi_lpe_audio blacklisted while i am trying whatever?
That line tells the kernel to force the Intel driver, which is already in the kernel.

Device seems to be
Device-2: Intel Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx
Series Low Power Engine Audio driver: N/A bus-ID: 00:15.0
chip-ID: 8086:22a8 class-ID: 0401
and that device seems to be problematic

https://linux-hardware.org/?id=pci:8086-22a8-8086-7270

https://forums.linuxmint.com/viewtopic.php?t=392250

viewtopic.php?p=810826#p810826

A user reported success in that last link with the Intel driver after some tweaking of profile/sources.

Otherwise, best advice probably would be to try the latest kernel from backports

https://backports.debian.org/Instructions/

along with the latest SOF firmware

viewtopic.php?p=810402#p810402

and latest firmware-intel-sound from Backports

https://packages.debian.org/bookworm-ba ... ntel-sound

and see if either the SOF (options snd-intel-dspcfg dsp_driver=3) or the SST (options snd-intel-dspcfg dsp_driver=2) driver has a fix/patch/hack/quirk for this setup.

You should probably remove any configuration settings made (like the blacklist) and see if anything "just works" with the latest kernel and drivers. These things do get fixed eventually.

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#13 Post by rara »

Thanks. I have now enabled HDMI LPE again, and that has brought something new for the first time, maybe because there are now 3 drivers enabled in
/etc/modprobe.d/inteldsp.conf
In pavucontrol soundmixer, where 9 ports are "unavailable" (digital surround and digital stereo), i can now choose "Pro Audio", and then the dummy output disappears. Instead, i can now choose between 3 outputs:
"Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller Pro", and the same with a 1 or a 2 after that.
But while the dummy output was showing me the volume bar, while i was playing an audio file, nothing can be seen with any of these 3 outputs.
That, for me, proves, that i need to get the real soundcard running and can't rely on the graphics controller HDMI LPE thing. I will try the backports way.
In the blacklist file there was already microcode blacklisted, which seems to be an Intel thing, too. I deleted that, as i am trying to get the Intel driver running. Does anybody know whether that microcode is relevant for my issue?

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#14 Post by rara »

It still doesn't work with kernel 6.11.5 and with the newest versions of firmware-intel-sound and firmware-sof-signed.
But i have noticed something related at boot-up. One of the first lines on the black screen says:
ID-number [something] is not rt5645 nor rt5650
That refers to the soundcard. Is that meaningful? I could only read it twice, when the computer took a few seconds longer at boot-up. Now it is always too fast to read that line.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2384
Joined: 2010-06-07 16:59
Has thanked: 45 times
Been thanked: 261 times

Re: Soundcard not detected on Minisforum Z83-F

#15 Post by FreewheelinFrank »

rara wrote: 2024-11-29 14:45 It still doesn't work with kernel 6.11.5 and with the newest versions of firmware-intel-sound and firmware-sof-signed.
But i have noticed something related at boot-up. One of the first lines on the black screen says:
ID-number [something] is not rt5645 nor rt5650
That refers to the soundcard. Is that meaningful? I could only read it twice, when the computer took a few seconds longer at boot-up. Now it is always too fast to read that line.
You can see boot time messages with

Code: Select all

# dmesg
which is a rather long output. Filter with something like the following and post the output.

Code: Select all

# dmesg  | grep -i  'sof\|firmware\|audio\|hda\|intel\|alsa'
Edit: typo.

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#16 Post by rara »

That exact command leads to a lot of apparently unrelated information. Maybe there's some relevance in this part, as it is partly about firmware:

Code: Select all

[    0.036846] Reserving Intel graphics memory at [mem 0x7cd00000-0x7ecfffff]
[    0.057305] software IO TLB: area num 4.
[    0.168557] Spectre V2 : Enabling Restricted Speculation for firmware calls
[    0.172382] smpboot: CPU0: Intel(R) Atom(TM) x5-Z8350  CPU @ 1.44GHz (family: 0x6, model: 0x4c, stepping: 0x4)
[    0.172382] Performance Events: PEBS fmt2+, 8-deep LBR, Silvermont events, 8-deep LBR, full-width counters, Intel PMU driver.
[    0.562982] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.642781] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.642786] software IO TLB: mapped [mem 0x000000006e000000-0x0000000072000000] (64MB)
[    1.732685] intel_pstate: Intel P-state driver initializing
[    6.386751] i915 0000:00:02.0: [drm] HDaudio controller not detected, using LPE audio instead
[   25.924227] Bluetooth: HCI UART protocol Intel registered
[   25.986825] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=0 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input7
[   26.007071] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=1 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input8
[   26.008506] input: Intel HDMI/DP LPE Audio HDMI/DP,pcm=2 as /devices/pci0000:00/0000:00:02.0/hdmi-lpe-audio/sound/card0/input9
[   26.458793] bluetooth hci0: firmware: failed to load brcm/BCM4345C0.hcd (-2)
[   26.458874] bluetooth hci0: firmware: failed to load brcm/BCM4345C0.hcd (-2)
[   26.469551] bluetooth hci0: firmware: failed to load brcm/BCM.hcd (-2)
[   26.469626] bluetooth hci0: firmware: failed to load brcm/BCM.hcd (-2)
[   26.469641] Bluetooth: hci0: BCM: firmware Patch file not found, tried:
[   27.344534] intel_rapl_common: Found RAPL domain package
[   27.344548] intel_rapl_common: Found RAPL domain core
[   27.619124] brcmfmac mmc0:0001:1: firmware: failed to load brcm/brcmfmac43455-sdio.acepc-t8.bin (-2)
This here seems to be more relevant:

Code: Select all

sudo dmesg  | grep -i  'rt5645'
[   26.782922] rt5645 i2c-10EC5645:00: supply avdd not found, using dummy regulator
[   26.783076] rt5645 i2c-10EC5645:00: supply cpvdd not found, using dummy regulator
[   27.216374] rt5645 i2c-10EC5645:00: Device with ID register 0x6281 is not rt5645 or rt5650

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#17 Post by rara »

And here we have a destroyed proxy. Is that relevant?

Code: Select all

journalctl -b |grep -i "snd\|audio"
Nov 29 16:15:53 zebian systemd-xdg-autostart-generator[909]: Exec binary 'start-pulseaudio-x11' does not exist: No such file or directory
Nov 29 16:15:53 zebian systemd-xdg-autostart-generator[909]: /etc/xdg/autostart/pulseaudio.desktop: not generating unit, executable specified in Exec= does not exist.
Nov 29 16:15:53 zebian systemd[895]: Listening on pipewire-pulse.socket - PipeWire PulseAudio.
Nov 29 16:15:53 zebian systemd[895]: Started pipewire-pulse.service - PipeWire PulseAudio.
Nov 29 16:15:54 zebian wireplumber[912]: <WpSiAudioAdapter:0x560371a0c040> Object activation aborted: proxy destroyed
Nov 29 16:15:54 zebian wireplumber[912]: <WpSiAudioAdapter:0x560371a0c040> failed to activate item: Object activation aborted: proxy destroyed

rara
Posts: 11
Joined: 2024-11-25 15:22
Has thanked: 1 time

Re: Soundcard not detected on Minisforum Z83-F

#18 Post by rara »

So, in 2016 people posted about a similar problem and seem to have concluded that there was a wrong modalias (whatever that means), so that device ID and codec didn't match:
https://bugzilla.kernel.org/show_bug.cgi?id=111531

In the codec for my rt5645 soundcard (at least i guess that that is mine) it says:

Code: Select all

#define RT5645_DEVICE_ID 0x6308
https://github.com/torvalds/linux/blob/ ... s/rt5645.c
But my computer is telling me:

Code: Select all

[   27.216374] rt5645 i2c-10EC5645:00: Device with ID register 0x6281 is not rt5645 or rt5650
Does that look like an error that prevents the soundcard from being detected?

Here somebody got a similar error message:

Code: Select all

cht-bsw-rt5645 cht-bsw-rt5645: ASoC: failed to init link SSP2-Codec: -517
cht-bsw-rt5645 cht-bsw-rt5645: snd_soc_register_card failed -517
https://linux-hardware.org/index.php?pr ... &log=dmesg

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2384
Joined: 2010-06-07 16:59
Has thanked: 45 times
Been thanked: 261 times

Re: Soundcard not detected on Minisforum Z83-F

#19 Post by FreewheelinFrank »

rara wrote: 2024-12-02 00:11
Does that look like an error that prevents the soundcard from being detected?
I had a look, but it's beyond my pay grade. I could find any possible solutions investigating that possible avenue in a web search either. The only thing I can suggest is a bug report so the people who really understand this stuff can have a look.

Post Reply