Loopback I2S on Audio MC board application

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
Post Reply
jorsc
Member++
Posts: 21
Joined: Fri May 05, 2017 1:39 pm

Loopback I2S on Audio MC board application

Post by jorsc »

Hi,
I'm trying to figure out where to insert code to perform a loopback test.
In my app I have I2S_CHANS_ADC=6 and I2S_CHANS_DAC=4 and I want to take samples from the last stereo pair of my ADC:s (4,5) and copy these to last stereo pair of my DAC:s (2,3). Thus override any samples coming from the USB host for those particular channels.
So far I tried to modify the "DoSampleTransfer" funtion in audio.xc without any luck...is this the right place to do this?


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Hi. Not an audio developer but perhaps you can study the following examples:

https://github.com/xmos/lib_i2s

https://github.com/xmos/lib_i2s/tree/master/examples
i2s_loopback.png
(51.94 KiB) Not downloaded yet
i2s_loopback.png
(51.94 KiB) Not downloaded yet

reference:
http://www.xcore.com/viewtopic.php?t=3525
jorsc
Member++
Posts: 21
Joined: Fri May 05, 2017 1:39 pm

Post by jorsc »

Thanks for your reply. Yes I'm aware of these examples. However I'm looking for a way to modify the audio usb sw framework.
Post Reply