Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8051

Graphics, sound and multimedia • Re: Help Needed: Raspberry Pi Music Transport with SPDIF + Full HD Touchscreen

$
0
0
SPDIF on Pi : https://github.com/mill1000/raspdif

I've no idea if this works though.

An alternative would be to use the PIO on a Pi5, but again that is a work in progress.

Or attach a PICO to convert I2S to SPDIF - cheaper than an audio HAT
Seeing as it opens /dev/mem, has various mailbox calls and bcm_host_get_sdram_address(), it looks to be a fairly low level hacking thing.
I'm almost certain it won't work on a Pi5, and may be limited to some subset of other Pis.
Quite a nice trick, but not implemented in a very hardware independent manner. The pipe via /tmp/spdif_fifo is a bit icky too.

I suspect it could be implemented cleanly as a kernel driver given a bit of effort. ALSA has an iec958 encapsulation plugin anyway, so no need to sort the preamble stuff within the driver.
Maybe could be done, but I have no idea if it can be since I regard Linux and professional audio as mutually exclusive, as far more importantly do Avid (ProTools) and Steinberg (Cubase) :D

But we've happily output SPDIF on a CM4 using bare-metal.

Statistics: Posted by MikeDB — Mon Aug 18, 2025 3:46 pm



Viewing all articles
Browse latest Browse all 8051

Trending Articles