I2S to SPDIF

  • I hope this is the right forum for my question.

    I want to build a SPDIF interface to my LibreELEC unit using I2S. For that I need the PCM_MCLK, PCM_CLK, PCM_FS and PCM_DOUT. There are many drivers delivering the CLK, FS and DOUT signals, but MCLK is missing. How does I get this out?

    Thanks

  • Sorry. I forgot to tell I am running on a Raspberry Pi , which ever version is needed. However the Master clock is needed for the I2S to SPDIF converters I know. An example is DIT4096 from Texas.

    If there are other platforms running LibreELEC, which has SPDIF build-in I will be glad to know it.

  • My audio system is using SPDIF between the sources, a DSP crossover and the speakers. The HiFiBerry is analog. It would be easy just to use the HiFiBerry driver to supply the I2S output of the RPi and add a DIT4096. Then I realized the Master Clock was missing!

    Thank you for the link. It might be to much work to do this my self. I had hoped somebody had a straight forward solution.

  • Hi Da Flex,

    This is great. I have missed the Digi+. I can see it uses the WM8804 IC, which uses a PLL to generate the MCLK. So this is definitely a simple option.

    In your thread you mentioned there is actually an overlay for getting the MCLK out from the RPi. That I will try first. If it works I can use the DIT 4096 I have from earlier. I am going to make a PCB any way. For the record I will let you know if I can get it to work.

    Thank you.