No sound via HDMI with dietpi in a PC

Hello everyone. I am an inexperienced Linux user. I have been using dietpi on my raspberry pi4 for a long time and now I want to configure it on my pc. but I don’t have enough knowledge to make it work correctly. I have a Beelink U59 mini pc (Beelink U59 Mini PC, with Intel® Celeron® Processor N5095 useful in ofiice Mini Computers,16GB DDR4&500GB SSD optional, support Triple display,2.4g/5g Wi-Fi,BT4.2) with dual boot (windows 11 and dietpi). I have the pc connected by hdmi to a tv. when i boot windows everything works fine (sound included by hdmi), but when i boot dietpi i have no sound. and I don’t know where to start. can you give me a hand? thank you!

You need to config the audio options with dietpi-confg > Audio Options

Sorry. I was not very specific, I have tried many things, the first “dietpi-config > AudioOptions” and the “autodetection” option. this option detects “intel-sst-dsp”
Then I go to “dietpi-justboom” and level up de volume o each control. But nothing happens. No sound in vlc, firefox, etc…

Searching the forums I have seen many solutions. but nothing has worked and my knowledge is too limited to know why

to begin with, the output of the command

aplay -L

dietpi@DietPi:/$ sudo aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    Hardware device with all software conversions
sysdefault:CARD=PCH
    HDA Intel PCH, ALC255 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC255 Analog
    Direct sample mixing device
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output
dietpi@DietPi:/$

And the output of the command
aplay -l


ietpi@DietPi:/$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC255 Analog [ALC255 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
dietpi@DietPi:/$ 

usually @MichaIng is the sound expert :smiley:

aplay -l lists only the analogue audio jack, HDMI audio isn’t available at all. Does this one show 2 cards?

ls -l dev/dsp*

Does the kernel show any errors?

dmesg -l 0,1,2,3

These are the outputs

dietpi@DietPi:/$ sudo ls -l dev/dsp*
ls: can't access 'dev/dsp*': file or directory does not exist
dietpi@DietPi:/$ sudo dmesg -l 0,1,2,3
[    6.277831] sd 3:0:0:0: [sdc] No Caching mode page found
[    6.277850] sd 3:0:0:0: [sdc] Assuming drive cache: write through
[    6.454931] iwlwifi 0000:01:00.0: firmware: failed to load iwl-debug-yoyo.bin (-2)
[    6.454937] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[    6.917121] Bluetooth: hci0: unexpected event for opcode 0xfc2f
[   66.685633] hdaudio hdaudioC0D2: Unable to configure, disabling

does anyone have any ideas?

@Dopoulo Did you get this working? I tried DietPi on an Intel Atom UpBoard Gateway and also no sound at all on HDMI audio output :frowning: