From 4da8a13d7613ddead28d31042cbc53eb34f381af Mon Sep 17 00:00:00 2001 From: Armando Visconti Date: Tue, 27 Apr 2021 19:30:51 +0200 Subject: [PATCH] drivers/i2s/ i2s_ll_stm32.c: Fix wrong DMA burst length value '0' is not a valid value for DMA burst length. Set it to '1' to perform a SINGLE transfer. Signed-off-by: Armando Visconti --- drivers/i2s/i2s_ll_stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2s/i2s_ll_stm32.c b/drivers/i2s/i2s_ll_stm32.c index 02d0cd51ae0..951c7effc6e 100644 --- a/drivers/i2s/i2s_ll_stm32.c +++ b/drivers/i2s/i2s_ll_stm32.c @@ -873,7 +873,7 @@ static const struct device *get_dev_from_tx_dma_channel(uint32_t dma_channel) .channel_direction = src_dev##_TO_##dest_dev, \ .source_data_size = 2, /* 16bit default */ \ .dest_data_size = 2, /* 16bit default */ \ - .source_burst_length = 0, /* SINGLE transfer */ \ + .source_burst_length = 1, /* SINGLE transfer */ \ .dest_burst_length = 1, \ .channel_priority = STM32_DMA_CONFIG_PRIORITY( \ DT_DMAS_CELL_BY_NAME(DT_NODELABEL(i2s##index), dir, channel_config)),\