Plexamp Pi Headless loses output setting on reboot

See also: Q: What is the right way to configure audio interface on a PlexAmp headless RPi? - #5 by pjv

…which you would have to modify for your HAT instead of the USB DAC that answer was addressing. I think the same approach might also work with a HAT with whatever are the appropriate modifications.