Asrock Trx40 creator audio not work?

The Links were to show the kernel and ALSA patches that are already included in your system
The Pulseaudio data shows that the Hifi Profile and the Ports from alsa-ucm-conf are in place

The command suggested to is only a temporary fix to get audio working again when audio resets to Off

PulseAudio will continue to switch to Off because the HiFi profile is shown as available: no
If the Hifi profile is changed so it is detected as available:yes or available:unknown then PulseAudio will not try to switch away from the working profile

Try this to adjust PulseAudio configuration
(previously suggested in this forum post - #15 by philm)

Open Pulseaudio configuration file for analog-outputs in a text editor

sudo nano /usr/share/pulseaudio/alsa-mixer/paths/analog-output-lineout.conf

find this section:

[Element Desktop Speaker]
switch = off
volume = off

change it to this:

[Element Desktop Speaker]
switch = on
volume = on

save changes Ctrl + O and exit nano Ctrl + X

Then reboot system and check the Pulseaudio Profile and Ports in pacmd list-cards