Hello,
I'm relatively new to XMOS products and I want to try S/PDIF input; S/PDIF output on multichannel 316-MC board.
I download 7.3.1; 8.1.0 and 9.1.0 audio reference designs and for a pity I can not make it working.
What is working is USB input - but when S/PDIF is enabled (using 2AMi10o10xssxxx) or the one with 2 inputs and 2 outputs (here I enable S/PDIF output) - I have some signal which looks like S/PDIF, but it isn't - when I have 44.1kHz on USB input, I get around 1.5MHz on S/PDIF output. Analogue outputs are working well.
When I try to insert S/PDIF - using RX, and stop usb audio (because I don't know how to select desired input) - there is absolutely nothing on analogue outputs.
Can you help me - where I got this wrong - for now I'm using only pre-compiled xe files from different reference designs and all is the same - only usb input is working.
Many thanks in advance.
Vlad
SPDIF problems on XK-AUDIO-316-MC-AB
-
- New User
- Posts: 2
- Joined: Tue Oct 21, 2025 12:44 pm
-
Verified
- XCore Addict
- Posts: 135
- Joined: Sun Dec 13, 2009 1:12 am
Hi, there may be some confusion. The sw_usb_audio software is primarily implementing a usb interface to i2s/spdif/adat etc. It will not implement spdif to i2s or vice versa etc. All of that is possible but would require different software.
USB host streaming audio data to spdif output will work however is this what you are trying? AT 44.1kHz, the spdif output will be at 2.822Mbps biphase mark encoded.
Cheers,
Joe
USB host streaming audio data to spdif output will work however is this what you are trying? AT 44.1kHz, the spdif output will be at 2.822Mbps biphase mark encoded.
Cheers,
Joe
XMOS hardware grey beard.
-
- New User
- Posts: 2
- Joined: Tue Oct 21, 2025 12:44 pm
Hello Joe,
Thank you for your answer.
I see - I think that when there are pre-compiled firmware, then one just have to upload it. Now I get it.
Thing is that on this newer reference designs, lets say 2AMi2o2xxxxxx , I have to enable S/PDIF output, then compile and then there must be valid S/PDIF output - but in my case there is no valid S/PDIF signal - like I wrote there is something similar to S/PDIF.
Years ago I tested old multichannel board and there S/PDIF output was working correctly after enabling it.
Thank again.
Vlad
Thank you for your answer.
I see - I think that when there are pre-compiled firmware, then one just have to upload it. Now I get it.
Thing is that on this newer reference designs, lets say 2AMi2o2xxxxxx , I have to enable S/PDIF output, then compile and then there must be valid S/PDIF output - but in my case there is no valid S/PDIF signal - like I wrote there is something similar to S/PDIF.
Years ago I tested old multichannel board and there S/PDIF output was working correctly after enabling it.
Thank again.
Vlad
-
Verified
- XCore Legend
- Posts: 1302
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Can you provide your modifications, to enable S/PDIF tx in the 2AMi202xxxxxx config you must enable SPDIF Tx and ensure it's presenting the expected channels (also make sure its on your desired interface - coax/optical)
Technical Director @ XMOS. Opinions expressed are my own