Thank you for your reply.
According to the comment in the code as below:
/* Creates a new DMA buffer allocator.
*
* This uses one of the several available i.MX DMA allocators internally. Which
* one is used is determined by the build configuration of libimxdmabuffer.
*
* @Param error If this pointer is non-NULL, and if an error occurs, then the integer * the pointer refers to is set to an error code from errno.h. If creating
* the allocator succeeds, the integer is not modified.
* @return Pointer to the newly created DMA allocator, or NULL in case of an error.
*/
ImxDmaBufferAllocator* imx_dma_buffer_allocator_new(int *error);
It seems that the only thing being related to the allocation of dma buffer is the allocator. When I compiled the libimxdmabuffer, I did not specified which allocator to used because I have no idea which one I should use.
Question: I am now using imx8m plus, what allocator should I use?
Thank you!