Problem: No audio via HDMI. Internal Speaker works.
Device: HP ProDesk 400 G5 Mini
GPU: Intel Corporation CoffeeLake-S GT2 [UHD Graphics 630]
Sound card: Intel Corporation Cannon Lake PCH cAVS (rev 10)
This is a Display port to HDMI setup. (Samsung AU8000 TV)
Not a hardware problem as I can get it to work in Windows and Debian (with a fix below)
Tested on Batocera 29 to beta 36.
I reinstalled the PC with Windows 11 to test: Audio via HDMI works out of the box.
I then tested with Debian 11 and it didn’t work out of the box. I had to do the following to get it working:
1. Install alsa-tools.
2. Run hdajackretask (this should be under your sound & video apps as well)
3. At the top under “select a codec”, I selected “Intel Kabylake HDMI”. This name may vary depending on your CPU, but I’d suspect HDMI or DP will always show up in the title.
4. Select “show unconnected pins”
5. Tick the boxes to override them all and select “HDMI / Displayport” for each.
6. Select “Install Boot Override”. Give your password when prompted & reboot. NOTE: The “apply now” button does not work, so don’t bother with it.
How can I reproduce this Debian fix on Batocera as I can’t install alsa-tools?
List of other things I have tried:
Followed each step in this guide https://wiki.batocera.org/audio_issues
Audio passthrough in Kodi: Doesn’t work
nvidia-driver=false: Doesn’t work
Editing the /userdata/system/.asoundrc file with the info from aplay -l: Doesn’t work
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX20632 Analog [CX20632 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
Other info:
/userdata/system]# batocera-audio list
auto auto
alsa_output.pci-0000_00_1f.3.analog-stereo Built-in Audio Analog Stereo
Logs: https://filetransfer.io/data-package/s0KmZTDl#link
Thanks for your help!