Loopback I2S on Audio MC board application

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

Loopback I2S on Audio MC board application

Postby jorsc » Fri Nov 02, 2018 2:45 pm

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: 1282
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Sun Nov 04, 2018 1:25 pm

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:
viewtopic.php?t=3525
jorsc
Member
Posts: 9
Joined: Fri May 05, 2017 1:39 pm

Postby jorsc » Wed Nov 07, 2018 8:24 am

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.

Who is online

Users browsing this forum: No registered users and 18 guests