RockPro64 SPDIF/TOSLINK

  • After my cubox is not supported any more I ordered a Rock64Pro to use instead. I need TOSLINK to connect audio and looked around for a solution like for the audio board for the Rock64 that does not work on the Rock64Pro.


    I found the this forum message with a description how to connect SPDIF/TOSLINK to pins on the Rock64Pro.


    Did anybody try this, yet? Is there information whether audio routing with LibreELEC would work through such a connection?

  • Just got my Rock64Pro and started it with LibreElec. Still need to connect it via toslink:


    - Looked around to find a vendor for DLT1150A or a similar toslink f.e.m.a.l.e connector, but just found offers for a whole box (2000 pieces) of them. Any idea where to get the connector (from Germany)?


    - Looked at "Audio output devices" in LibreElec and found 4x ALSA (Default: HDMI Analog, HDMI Analog, HDMI HDMI, ES8316 Analog) and a Pulse Bluetooth Audio. Which one would be the right output to get a signal on the SPDIF header?



    Thanks, Chris


    PS: My message contains the censored word "f.e.m.a.l.e" as part of the technical name of the thing one can plug a toslink cable into. I'm not an english native speaker and its been the only translation I found.

  • Got the spdif-toslink working :) in armbian buster. It showed up as a device (Sink #2, alsa_output.platform-spdif-sound.stereo-fallback in pulseaudio) and I could play sounds to it.


    The connection to my amp using toslink works also.


    Parts: JST PHR-3 connector, short cable (shouldn't be more than 2-3cm), PLT133/T8 transmitter.

  • Thought some more about it. Build my own image - cool build process :) .


    Compared config.gz and dtb of Armbian to the ones of LibreElec and found differences.


    Made some changes to .config of the kernel package in LibreElec (funny, I had to change the package directory to get a rebuild of the package - changing the kernel configuration didn't do the trick) and changed some minor difference in the dtb.


    I'm still reading about these things as I'm new to them.


    Well, I'm stuck with this message on serial console when starting:


    Code
    1. [ 2.128560] rockchip-spdif ff870000.spdif: Missing dma channel for stream: 0
    2. [ 2.129312] rockchip-spdif ff870000.spdif: ASoC: pcm constructor failed: -22
    3. [ 2.130055] asoc-simple-card spdif-sound: ASoC: can't create pcm ff870000.spdif-dit-hifi :-22
    4. [ 2.130946] asoc-simple-card spdif-sound: ASoC: failed to instantiate card -22

    Don't know how to cure this. The system is otherwise working fine, but no spdif out.

  • Sometime giving the thought about an approach some time helps. Not this time. I'm stuck.


    I'd bet that there is only something really small to change to get the spdif output for rockpro64 working since the difference to the dtb and kernel of armbian is so slight. But I don't see my approach to pin it.


    Nobody else out there running rockpro64 and thinking about using a digital output ;-) ?


    Anybody who can point me in the right direction to look to find the difference?