I would like to use SPDIF header on board for digital audio output. Does it needs to be enabled with some device tree overlay? Command aplay -l shows only one card:
Yes, I have Toslink adapter attached. I did take look of alsamixer but was not sure about settings and what should be changed. After configurations are done, should I see with aplay -l command (or similar) when SPDIF output is enabled?
OK, that’s awesome! The reason why I asked for help was when I noticed on the all-h3-cc-h5 Board side that there was spdif.dts overlay used to enable SPDIF and wondered could it be same thing in AML-S905X-CC board also.
Just checking is there any progress on this? I’m developing a commercial streamer device and evaluating AML-S905X-CC SBC due to it’s very competitively priced. Integrated SPDIF would be a very big advantage over other manufacturers, but of course I would like to try it. Secondly, is the SPDIF output directly supported in some other distros? I’m currently using this Debian 11 Bullseye:
Linux raspberrypi 6.1.29-06024-g1987da89199c #1 SMP PREEMPT_DYNAMIC Wed May 24 04:26:03 UTC 2023 aarch64 GNU/Linux
Clone the latest libretech-wiring-tool and use ./ldto instead of ldto. This SPDIF overlay will be pushed via apt in a week or so. Please let us know if you run into any issues.
Which distro was used to test this overlay? Enabling spdif.dts didn’t affect (no new device seen with aplay -l) and merging the overlay resulted that all audio was broken.
gevol@raspbian-bullseye-aml-s905x-cc:~ $ speaker-test
speaker-test 1.2.4
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory
It doesn’t show up as a new device since the SPDIF controller just takes the existing PCM output and encodes it for SPDIF and outputs the signal on the pin.
Hi Librespot, are going to fix the issue with the provided spdif.dts overlay regarding to correct dai-link sub node order? According to my tests “dai-link-4” node can’t be the first (before dai-link-0) due it will break the audio totally. When it’s the last sub-node then audio and SPDIF output in Header 9J1 will work.