==Raspbian Stretch==
The following operation is in the <span style="color:red;">config.txt</span> file
REMOVE THE DRIVER FOR THE ONBOARD SOUND
<pre>
1) pi@raspberrypi ~ $ sudo nano /boot/config.txt 2) #Remove the line: or add the '#' at the begin of this line;#dtparam=audio=on
</pre>
CONFIGURE DEVICE TREE OVERLAY FILE
<pre>
3) #Add the following lineat the end of config.txt file; dtoverlay=hifiberry-dac4) #Save your changes by pressing config.txt file(Ctrl-x then Y)5) #Reboot your Raspberry Pi pi@raspberrypi ~ $ sudo reboot
</pre>