AnsweredAssumed Answered

ADSP-BF70x how to use linked dma buffers with adi sport drivers

Question asked by dehkl on May 27, 2016
Latest reply on Oct 4, 2016 by dehkl

Reposting this in the correct subforum.

I am rewriting parts of our full duplex I2S driver for the 70x and try to base this around the adi drivers.

the standard way seems to enable dma mode and then use adi_sport_SubmitBuffer() whenever a buffer have been transmitted. This generates some overhead submitting the same two buffers over and over again and it also introduces the risk of data glitches if the callback is not fast enough.

 

Is there a way to tell the sport driver to either

a) use two circularly linked dma buffers that run autonomously and triggers an interrupt on every dma buffer end.

or

b) use a single fractional dma buffer that generates x interrupts and links to itself.

What would be the best way to accomplish this without throwing out the adi sport drivers?

Outcomes