2 channel ASRC with DMA

Hi community,

we are looking for some information or sample code how to use the Asynchronous Sample Rate Converter (ASRC) in DMA mode and two separat channels (bidirectional audio).

We know that we have to store and restore the state for each channel.

It seems like you can not rely on DMA completed events to switch to another channel.

Do we need to use a render timer?

BR
Martin

Hi,

Without using render timer, you can’t control packets by using our custom protocol. More information regarding render timer can be found in 7.2.2.3 and 7.3.4 sections of RSL10_firmware_reference.pdf available in RSL10 Documentation Package.

Thank you for using our Community Forum.

Hi!

I know your documentation very well and there is no good explanation how to use two channels for ASRC and DMA.

We cannot rely on DMA-complete events since then we will overwrite data and the ASRC will produce garbage etc.

When is the best time to check if the ASRC can be stopped and switched to another channel?

BR
Martin

Hi,

It seems that the right sample code for you would be remote_mic_tx_raw.

This firmware will run both Left and Right Audio Samples through the ASRC separately, and will use the DMA Interrupts to properly load and restore the ASRC context.

Thank you for using our Community Forum.