mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
drivers: mcux_i2s: Use the DMA reload flag
Use the DMA reload flag to indicate we wish to use a circular chain of DMA descriptors to reload DMA receive buffers. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
committed by
Anas Nashif
parent
b8c21a6d88
commit
0260d6daa4
@@ -377,8 +377,8 @@ static void i2s_mcux_config_dma_blocks(const struct device *dev,
|
||||
blk_cfg->source_address = (uint32_t)&base->FIFORD;
|
||||
blk_cfg->dest_address = (uint32_t)buffer[0];
|
||||
blk_cfg->block_size = stream->cfg.block_size;
|
||||
blk_cfg->source_gather_en = 1;
|
||||
blk_cfg->next_block = &stream->dma_block[1];
|
||||
blk_cfg->dest_reload_en = 1;
|
||||
|
||||
blk_cfg = &stream->dma_block[1];
|
||||
memset(blk_cfg, 0, sizeof(struct dma_block_config));
|
||||
|
||||
Reference in New Issue
Block a user