7.1.4.7 audio_dma_flush_buffer
Flush off the buffers.
int32_t audio_dma_flush_buffer(
struct audio_dma_descriptor *const desc,
enum audio_dir dir
)
This function flushes off the write or read buffers and disable the DMA channel.
Parameters
- desc
-
Type: struct audio_dma_descriptor Struct *const
Pointer to audio driver descriptor
- dir
-
Type: enum audio_dir Enum
Identifies flush the read or write queue
Returns
Type: int32_t
The result of comparator n stop the operation.