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