Many HiFiBerry DAC users asked us about XBMC support. Today (February 2014), the ALSA sound card support in XBMC is still in an early stage in XBMCv13. For video playback there is a new “dvdplayer” that will replace the current video player in the future.
Dom Cobley from Broadcom has created an experimental OpenElec build that supports the HiFiBerry DAC. This is not an official OpenElec version yet! If it doesn’t work, there is no support. It will have bugs! This build includes a hack that forces output to 16-bit audio, as the 24-bit audio does not work at the moment with OpenElec. This seems to be a bug in the underlying I2S sound subsystem. It is not clear yet, how to fix this. We well work with the developers to find a solution. However, we can’t guarantee this.
- Install OpenElec
- Get the experimental build from here:OpenELEC-RPi.arm-devel-20140226212939-r17638-g6fc6264.tar
- Upload this build to the running OpenElec system via SMB. See http://wiki.openelec.tv/index.php?title=Updating_OpenELEC
- ssh to the system (as root, default password is openlec) and create the file /storage/.config/modules-load.d/hifiberry.conf
You can just copy/paste the following code to your command line. If you want to create the file with an editor of your choice, do not include the first line starting with “cat” and the last “EOF” line!
cat >/storage/.config/modules-load.d/hifiberry.conf <<EOF snd_soc_bcm2708 snd_soc_bcm2708_i2s bcm2708_dmaengine snd_soc_pcm5102a snd_soc_hifiberry_dac EOF
- You will also want to create /storage/.xbmc/userdata/advancedsettings.xml:
cat >/storage/.xbmc/userdata/advancedsettings.xml <<EOF <advancedsettings> <video> <defaultplayer>dvdplayer</defaultplayer> <defaultdvdplayer>dvdplayer</defaultdvdplayer> </video> </advancedsettings> EOF
- Reboot and you should get a third option in settings/system/audio output/audio output device (snd_rpi_hihiberry_dac).
Pingback: Experimental XBMC build with digital out of AC3 and DTS over SPDIF | Crazy Audio
The link for that build is failing, do you know if last beat of openelec works with Digi ?
(I need 16 bits stream)
do we have to follow this same procedure for the freshly released OpenElec 4.0(XBMC13)? or are some things different?
let me answer that myself…
step 7, reboot
works like a charm… Thank you all!
Working on latest Openelec Dev build. Great
I love my hifiberry/openelec/xbmc. Better sound than I could split out of the HDMI.
Any news about getting the 24 bit audio working?
do all I2S devices have this problem?
Where can I find more information?
My hifiberry DAC not working with some AVI files with sound coded by A52 codec (AC3).
Why??? Any solution?
The HiFiBerry sound card do not do any decoding. If you have problems with a specific sound format, the software has to decode it. You have to check with the developers of the software.