Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio: host-zephyr: Allocate DMA block configuration on heap
Currently, the DMA block configuration (struct dma_block_config) is placed on the stack during host_common_params(). Later on, host_copy_one_shot() tries to re-configure the DMAC driver using the same block configuration that's located in a stack frame that's no longer valid. As such, allocate a DMA block configuration on the heap during host_common_params() which can be used later on (e.g: during host_copy_one_shot()) to reconfigure the DMAC. Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
- Loading branch information