RasPlex and HifiBerry - second round

Hi

 

I am trying to work out if it is possible to get my HifiBerry working with RasPlex.  There are two earlier posts: here

 

https://forums.plex.tv/topic/98064-support-for-hifiberryinstalling-kernel-modules/?hl=hifiberry

 

and here

 

https://forums.plex.tv/topic/96779-rasplex-9919-fix-preplay-huge-perf-improvements/page-2#entry570337

 

which seem to be related to the same issue but it is not clear to me if they were resolved.  Not sure which version of RasPlex i am using but I only installed RasPlex last week (24 Jan) so I guess it is a pretty recent version.

 

This is all new to me so any advice would be appreciated

 

Thanks!

I've been looking into the same thing for the past 2 weeks or so, and sadly it's not currently possible. As stated in your first link Hifiberry cards require linux kernel 3.10.23 or above. The current linux kernel used in Rasplex is 3.10.20. This won't change in the forseeable future as it requires Rasplex to be based on a newer version of  Openelec.

An alternative solution could be to use Openelec with the plugin Plexbmc, but this setup has troubles of it's own since the current version of Plexbmc doesn't work with Plex servers where the Plex Home feature has been enabled. There are community based fixes for this issue, but I have yet to test these fixes so I cannot say how well they work.

Ok, thanks!  I guess we'll have to wait for Rasplex to be updated with the newer version of Openelec

Ok, thanks!  I guess we'll have to wait for Rasplex to be updated with the newer version of Openelec

If you have a Raspberry Pi 2 Model B you could try running Rasplex 0.5.0 using Berryboot as outlined in this topic https://forums.plex.tv/topic/145555-want-rasplex-on-rpi2-try-the-berryboot-method/?p=846065It uses the Berryboot updated firmware and drivers so theoretically your HifiBerry might work.

Regards

Per the new 0.5.1 release, rasplex supports device trees and should support the hifiberry DAC. Unfortunately, just replacing the dtoverlay=lirc-rpi line with dtoverlay=hifiberry-dacplus does not work. Looking into it, dmesg gives this error:

[    5.709137] snd-rpi-hifiberry-dacplus sound: ASoC: CPU DAI (null) not registered
[    5.709233] snd-rpi-hifiberry-dacplus sound: snd_soc_register_card() failed: -517
[    5.709280] platform sound: Driver snd-rpi-hifiberry-dacplus requests probe deferral
[    5.716482] snd-rpi-hifiberry-dacplus sound: ASoC: CODEC DAI pcm512x-hifi not registered
[    5.716575] snd-rpi-hifiberry-dacplus sound: snd_soc_register_card() failed: -517
[    5.716625] platform sound: Driver snd-rpi-hifiberry-dacplus requests probe deferral
[    5.739122] pcm512x 1-004d: No SCLK, using BCLK: -2
[    5.758565] snd-rpi-hifiberry-dacplus sound: pcm512x-hifi <-> 20203000.i2s mapping ok

I wonder if anyone has seen better results?

Thanks,

Ian
 

Per the new 0.5.1 release, rasplex supports device trees and should support the hifiberry DAC. Unfortunately, just replacing the dtoverlay=lirc-rpi line with dtoverlay=hifiberry-dacplus does not work. Looking into it, dmesg gives this error:
 
[    5.709137] snd-rpi-hifiberry-dacplus sound: ASoC: CPU DAI (null) not registered
[    5.709233] snd-rpi-hifiberry-dacplus sound: snd_soc_register_card() failed: -517
[    5.709280] platform sound: Driver snd-rpi-hifiberry-dacplus requests probe deferral
[    5.716482] snd-rpi-hifiberry-dacplus sound: ASoC: CODEC DAI pcm512x-hifi not registered
[    5.716575] snd-rpi-hifiberry-dacplus sound: snd_soc_register_card() failed: -517
[    5.716625] platform sound: Driver snd-rpi-hifiberry-dacplus requests probe deferral
[    5.739122] pcm512x 1-004d: No SCLK, using BCLK: -2
[    5.758565] snd-rpi-hifiberry-dacplus sound: pcm512x-hifi <-> 20203000.i2s mapping ok
 
I wonder if anyone has seen better results?
 
Thanks,
 
Ian


You didn't need to replace the dtoverlay, you can have many entries for different hardware. I have an HiFiBerry on order, should be here in a couple of days, will be able to investigate the issue then.

Regards

I’d disabled the lirc because I’ve read that it blocks on some of the gpio pins. Thanks for looking into it though!

Any update on this? How do I disable LIRC? I can not get it blacklisted due to read only fs.

Any update on this? How do I disable LIRC? I can not get it blacklisted due to read only fs.


Still awaiting delivery (I'm in the UK), will post when I've had time to test.

Regards

As long as you wait I can test. Only thing I need to know is how i get rid of LIRC. I read a lot of deleting it out of config.txt, use modprobe to blacklist it but the first thing didn´t change anything and I do not know how to achieve the second one because I can not deactivate the read only fs on /etc.

wouldn't a mount -o remount,rw /etc achieve this? cannot test now but that's the standard way to remount in read-write a write-only filesystem in linux

I think you can only remount elements of the mounttable, so unfortunately no. 

It’s using squashfs. I already tried this, but I’m not sure of how they “requashed” the system. Standard args don’t result in a filesystem that was recognized at boot.

The problem is, GPIO 18-21 are reserved for the HiFiBerry sound port. Therefore it would be a solution if it would be possible to reconfigure LIRC to just use another port. I try to execute a script on startup but for now it is not working. I keep looking into it.

echo "End Lirc Deamon"
kill $(pidof lircd)
echo "Unload Lirc Module"
modprobe -r lirc_rpi
echo "Reload Lirc Module with different GPIO Pin"
modprobe lirc_rpi gpio_in_pin=22

Didn´t work...

Didn´t work...


Have received my HiFiBerry today, it will not work in any of the current builds, looking to get the patches needed in the next release.

Would be awesome if the hifiberry digi also be supported!  

Any chance on a comment from a developer? According the release notes, hifiberry integration has finally arrived. :-(

Any chance on a comment from a developer? According the release notes, hifiberry integration has finally arrived. :-(


Which release notes are those, I'm not aware of any for Rasplex next release?

Any chance on a comment from a developer? According the release notes, hifiberry integration has finally arrived. :-(


Don't think we've even started drafting the release notes yet.