i2s_alloc_dma_desc() function
Allocate memory for I2S DMA descriptor and DMA buffer
Arguments
num
Number of DMA descriptors
bufsize
The DMA buffer size
Return value
- ESP_OK Allocate memory success - ESP_ERR_INVALID_ARG NULL pointer or bufsize is too big - ESP_ERR_NO_MEM No memory for DMA descriptor and DMA buffer
i2s_alloc_dma_desc() is called by 3 functions and calls 6 functions:
![]()
i2s_alloc_dma_desc()
i2s_alloc_dma_desc() reads 16 variables and writes 11 variables:
![]()
i2s_alloc_dma_desc()