raspdif icon indicating copy to clipboard operation
raspdif copied to clipboard

S/PDIF kernel module

Open mill1000 opened this issue 5 years ago • 4 comments

The end goal of this project would to be a kernel module for S/PDIF output. Something along the lines bcm2835-i2s but for S/PDIF

mill1000 avatar Apr 25 '20 21:04 mill1000

That would be very cool if it could just be used like an ALSA device!

herrernst avatar May 13 '21 12:05 herrernst

Yeah! I've contemplated making it a kernel module that provides a /dev/raspdif endpoint which could be written to. It would be a step in the right direction.

In the meantime, you inspired me to whip up this ALSA configuration for raspdif. You can either use it in your .asoundrc or /etc/asound.conf. With this config any ALSA compatible player should work.

https://github.com/mill1000/raspdif/blob/d682654c1547f721683f3692216656b6f67c7f13/asound.conf#L1-L22

I also added the systemd service I've been using.

I'll update the README when I get a chance.

mill1000 avatar May 14 '21 03:05 mill1000

Closing this as a "won't do" for now.

mill1000 avatar Mar 10 '23 16:03 mill1000

Found this project today: kiffie/rpi-i2s-spdif. Same ideas as raspdif but the creator knew enough about kernel modules to make it work.

Reopening this issue since the above project would be a good reference

mill1000 avatar Apr 21 '23 20:04 mill1000