Page 1 of 1

Loopback I2S on Audio MC board application

Posted: Fri Nov 02, 2018 2:45 pm
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?

Re: Loopback I2S on Audio MC board application

Posted: Sun Nov 04, 2018 1:25 pm
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

reference:
http://www.xcore.com/viewtopic.php?t=3525

Re: Loopback I2S on Audio MC board application

Posted: Wed Nov 07, 2018 8:24 am
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.