Intra-frame sample delay (ADC/TDM)

This commit is contained in:
Ross Owen
2016-08-17 11:10:10 +01:00
parent e270729960
commit 09764eb627
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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 */