Configure OSMC for HiFiBerry boards (Alpha 2, end of 2014)

 

Configure OSMC for HiFiBerry boards (Alpha 2, end of 2014)

OSMCThis guide shows the configuration of an outdated version of OSMC. Check out our Knowledge Base for up-to-date documentations.

Raspbmc configuration wasn’t easy for HiFiBerry products. With the new OSMC (the successor of Raspbmc) it is a bit easier and the audio bug in the previous XBMC has been fixed now. This post explains how to configure OSMC alpha 2 for the HiFiBerry boards.

Get one of the latest available releases

For a long time, XBMC on the Raspberry Pi was not working correctly with sound cards that offer 24bit playback. While there is a fix to this problem now, it has not been included in all versions yet.

Update system, install some tools

ssh -l pi ip-of-your-raspberrypi
$ sudo apt-get -y update && sudo apt-get -y upgrade
$ sudo apt-get install -y curl wget binutils alsa-utils
$ sudo reboot

Configure /etc/modules

ssh -l pi ip-of-your-raspberrypi
$ sudo bash
# cat >/etc/modules <<EOT
snd_soc_hifiberry_dacplus
EOT
# reboot

If you’re using another card than the HiFiBerry DAC+, use the suitable module instead: snd_soc_hifiberry_dac, snd_soc_hifiberry_digi or snd_soc_hifiberry_amp.

Check the sound card is configured correctly

ssh -l pi ip-of-your-raspberrypi
$ aplay -l
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 []
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Enable HiFiBerry output in the menu

Go to System/Settings/System/Audio output and select the ALSA output device. Now your sound output will go to the HiFiBerry sound card.