Fixing HDMI audio on Intel 13gen cpu

this is just bad, now 5 generations later...

The problem

I just bought Lenovo ThinkCentre neo 50q Gen 4 with Intel i5 13420H. Great little machine, but yet again, audio over displayport doesnt work

This probably is about Lenovo firmware more than the Intel.

Frustration: maximum, but this time at Lenovo.

The fix

In order to fix it, we need to change something with the kernel drivers:

So, create a file /etc/modprobe.d/hdmi-audio.conf and put the following content in:

options snd_intel_dspcfg dsp_driver=3
options snd_hda_codec_hdmi enable_all_pins=1

Claude got me to run also dracut --force and then reboot, but im not sure that necessery.