drivers: i2s: apply new data size for DMA interface
the old DMA driver used to use 1 to stand for 16 bits, while the new driver uses 2 to stand for 16 bits, which means the 'source_data_size' and the 'dest_data_size' should be 2. Signed-off-by: Song Qiang <songqiang1304521@gmail.com>
This commit is contained in:
parent
85a0cc8f9a
commit
c086597e21
1 changed files with 2 additions and 2 deletions
|
@ -848,8 +848,8 @@ static struct device *get_dev_from_tx_dma_channel(u32_t dma_channel)
|
|||
.block_count = 1, \
|
||||
.dma_slot = DT_I2S_##index##_DMA_SLOT_##dir_cap, \
|
||||
.channel_direction = PERIPHERAL_TO_MEMORY, \
|
||||
.source_data_size = 1, /* 16bit default */ \
|
||||
.dest_data_size = 1, /* 16bit default */ \
|
||||
.source_data_size = 2, /* 16bit default */ \
|
||||
.dest_data_size = 2, /* 16bit default */ \
|
||||
.source_burst_length = 0, /* SINGLE transfer */ \
|
||||
.dest_burst_length = 1, \
|
||||
.channel_priority = STM32_DMA_CONFIG_PRIORITY( \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue