Should I configure OpenElec/LibreElec using device-tree overlay?
Alle newer versions of OpenElec (starting with version 6) and all LibreElec versions use the device-tree method to configure the board.
If you have already flashed the EEPROM of your DAC+ Standard/Pro or Digi+, the card will be automatically detected and you only have to configure it in the settings menu.
Login to your OpenElec system using ssh.
When you first boot you should enable SSH when the Welcome to OpenElec wizard is displayed. You can enable SSH, later, via the OpenElec settings.
The SSH login details are
Make /flash writeable
Once logged in via SSH the disk partition mounted under the /flash directory needs to be made writeable. Run the following command in the SSH console to do this:
mount -o remount,rw /flash
Add the following lines,depending on the type of sound card, to config.txt.
Save the changes to config.txt and then reboot your OpenElec machine.
If the sound card isn’t recognized after the reboot, check the log output via the command:
vcdbg log msg
Select the sound card
Once rebooted, navigate the OpenElec menu to System → Settings to show the Change Your Settings panel. Select the System submenu followed by the Audio output page. From the Audio output device select the ALSA enabled HiFiBerry sound card. All sound will now go to the HiFiBerry sound card’s output.
Mixer control for DAC+
OpenElec seems to set the mixer to 100% by default. This can result in distortions of the music output. Therefore you should set this to around 80%. Login and use the following command:
amixer -c 0 set Digital 80%
You may want to experiment with the percentage volume in order to tune it to your desired preference.