drivers: i2s: stm32: use length from i2s_write

The length parameter from `i2s_write` is not used correctly by
i2s_ll_stm32.c. E.g. `i2s_write(dev, block, 0)` would work.

Use the length from `i2s_write` in `dma_reload` to fix the issue.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
Jeppe Odgaard 2024-04-30 10:27:11 +02:00 committed by Anas Nashif
parent 32ba549536
commit 5d44ebfa7d

View file

@ -633,7 +633,7 @@ static void dma_tx_callback(const struct device *dma_dev, void *arg,
#else
(void *)LL_SPI_DMA_GetRegAddr(cfg->i2s),
#endif
stream->cfg.block_size);
mem_block_size);
if (ret < 0) {
LOG_DBG("Failed to start TX DMA transfer: %d", ret);
goto tx_disable;