This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Missing audio samples on the C6748 (Zoom dev kit)

Hi,

My setup is as follows:

CCS 5.2

Code Generation Tools 7.3.2

DSP/BIOS 5.41

Target: C6418 DSP (LogicPD Zoom Development Kit)

Drivers: BIOS PSP v1.30.01, EDMA3 LLD v1.11.03.01

I'm using the Audio driver that came with BIOS PSP v1.30.01 to get audio samples from the AIC3106 codec on the LogicPD Zoom Development Kit. The driver is used for a very complicated application that performs a lot signal processing on the audio samples. Through some vigorous bug hunting, we have found that there must be a break somewhere in the audio samples, since it introduces multipath components in our simple loopback configuration. We have confirmed that this could only happen on driver level.

This is a very subtle bug/problem, which we struggle to consistently reproduce due to the complex nature of our application. On the other hand, in the environment in which we only test the audio driver (including the I2C, McASP and EDMA3 drivers), we cannot reproduce the bug/problem at all, presumeably since there is not enough load/variability on the system. I intend to create some additional dummy tasks that adds significant and variable load onto the system to see if some of the samples are missed somewhere.

Being relatively inexperienced in this type of driver debugging, I have the following questions for the experts:

- Are there any known issues with the audio and its associated drivers that could cause this loss of samples?

- Is there a specific recommended way in which the drivers should be used or configured, that might differ from the supplied examples in BIOS PSP?

- Could this somehow be related to EDMA3?

- Given the somewhat vague information I provided above (sorry I do not have more te report at this point in time), what are the typical causes for the loss of samples? The thing is I'm not even sure where to start looking!

Some insight and pointers for debugging this problem would be GREATLY appreciated!

Thanks in advance!

Regards

  Reinier

  • Reinier,

    For McASP/Codec/Audio configuration, you can refer to sample example provided in the PSP 1.30.01.

    Could you please mention the sample rate, sample size and the McASP configuration (like number of slots, slot size, FIFO enable/disable etc)? and also the number of buffers being primed?

    For debugging, you can keep breakpoint in the function "Mcasp_localIsrSwiFxn()" of the file "<...>\pspdrivers_01_30_01\packages\ti\pspiom\mcasp\src\Mcasp.c". This will clarifies that any error being generated during the audio data transaction.

    Regards,

    Sandeep K