From 09764eb62764e303306b5dbda4a304184946770b Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Wed, 17 Aug 2016 11:10:10 +0100 Subject: [PATCH] Intra-frame sample delay (ADC/TDM) --- CHANGELOG.rst | 4 ++++ module_usb_audio/audio_io/audio_io.xc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fc04543d..6f5056bb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ sc_usb_audio Change Log ======================= +6.20.0 +------ + - RESOLVED: Intra-frame sample delays of 1/2 samples on input streaming in TDM mode + 6.19.0 ------ - CHANGE: BCD_DEVICE version increment only diff --git a/module_usb_audio/audio_io/audio_io.xc b/module_usb_audio/audio_io/audio_io.xc index 90568e17..66b01e02 100755 --- a/module_usb_audio/audio_io/audio_io.xc +++ b/module_usb_audio/audio_io/audio_io.xc @@ -598,7 +598,7 @@ unsigned static deliver(chanend c_out, chanend ?c_spd_out, /* Input previous L sample into L in buffer */ index = 0; /* First input (i.e. frameCount == 0) we read last ADC channel of previous frame.. */ - unsigned buffIndex = (frameCount < 3) ? !readBuffNo : readBuffNo; + unsigned buffIndex = (frameCount > 1) ? !readBuffNo : readBuffNo; #pragma loop unroll /* First time around we get channel 7 of TDM8 */