Tool/software: TI-RTOS
I am using TI Linux and RTOS SDK v4.3 for AM5728 - Linux on A15, TI-RTOS on DSP and M4 cores.
I am using MCASP 3, 4, and 5 buses on the DSP. The clock is set to internal for all MCASP buses, i.e. DSP is the clock master. The audio from all the buses runs through the mixer and other audio processing code on the DSP. It's required that the DMA callbacks from all three MCASP buses synchronize but I am seeing delays in the callbacks from different buses. All TX and RX buffers for MCASP buses are being submitted simultaneously, but semaphore posts from the callback are skewed by ~1.5 to 2ms. Callbacks for RX and TX for same MCASP bus is within 120 to 150usec, but there's more than 1.5ms offset between the callbacks between different MCASP buses. Is there any way I can reduce the latencies observed?