SWCU195A December 2024 – May 2025 CC2744R7-Q1 , CC2745P10-Q1 , CC2745R10-Q1 , CC2745R7-Q1 , CC2755R10
Before DMA shutdown, all output external audio devices (for example, a DAC) should be muted, or silence should the transmitted on output ADx pins. The DMA must not be stopped while there could be an ongoing DMA memory transfer.. When using the internal audio clock source or an external audio clock source that cannot stop unexpectedly, software should use the following procedure to stop the DMA:
Stop writing to the AIFINPTRNEXT and/or AIFOUTPTRNEXT registers.
Optional: Wait for IRQFLAGS.PTR_ERR to occur.
Wait for AIFINPTRNEXT and AIFOUTPTRNEXT to become zero.
Write AIFDMACFG.END_FRAME_IDX = 0.
When using an external audio clock source that can stop unexpectedly, software should use the following procedure to stop the DMA:
Stop writing to the AIFINPTRNEXT and (or) AIFOUTPTRNEXT registers.
Stop the external audio clock source.
Wait for IRQFLAGS.WCLK_TIMEOUT to occur, or for AIFINPTRNEXT and AIFOUTPTRNEXT to become zero, whichever happens first.
Write AIFDMACFG.END_FRAME_IDX = 0.