sudo su
apt-get install raspberrypi-kernel-headers gcc make device-tree-compiler git
git clone https://github.com/miero/tpa-hermes-rpi-dev.git
cd tpa-hermes-rpi-dev
git pull
make clean
make install
depmod -A
echo "dtoverlay=tpa-hermes-rpi" >> /boot/config.txt
echo "dtoverlay=tpa-hermes-rpi" >> /DietPi/config.txt
/DietPi/dietpi/func/dietpi-set_hardware soundcard hw:sndtpahermesrpi,0
reboot
aplay -l
output of aplay command should contain sndtpahermesrpi device
**** List of PLAYBACK Hardware Devices ****
...
card 1: sndtpahermesrpi [snd_tpa_hermes_rpi], device 0: TPA-Hermes-RPi HiFi tpa-hermes-rpi-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0