Lost HDMI audio with Kernel update

I don’t know why but almost every time I update the KERNEL I loose the HDMI audio. To fix it I copied & paste the following and then reboot. It’s majic my HDMI audio starts to work. Don’t know where I got this but thank-you and hope it works for someone else.

echo 'options snd-intel-dspcfg dsp_driver=1' | sudo tee -a /etc/modprobe.d/alsa-hda.conf

I’m using an older Intel NUC


Mod edit:- It is only required that code or command output be placed within a pre-formatted text box. Normal comments can remain typed directly into the post, as the edit demonstrates.
Please post with some forethought in future. Formatting corrected. No charge.

2 Likes

This specific command was suggested, but not implemented, in 2021 - HDMI audio gone

Any sufficiently under-explained Linux is indistinguishable from magic

Spoilers
$ modinfo -p snd-intel-dspcfg
dsp_driver:Force the DSP driver for Intel DSP (0=auto, 1=legacy, 2=SST, 3=SOF, 4=AVS) (int)

SOF Linux Driver Architecture - Support for High Definition Audio (HD-Audio) – SOF Project documentation

but “When it sounds good, it is good” Duke Ellington

Yep I’m a Noob…I hang my head in shame.

But you found a good ‘incantation’ to resolve an unusual* issue in ALSA and shared information that might help other users with Intel NUC systems, neither of these is typical for a new user

*ALSA is usually very reliable and is the least likely part of Linux audio to fail after an update
The solution that worked on your system was usually needed for laptop systems with built-in microphones. A desktop systems without built-in microphones should not need this