Skip to content

Commit

Permalink
drivers: i2s: stm32: use length from i2s_write
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Jeppe Odgaard authored and nashif committed May 3, 2024
1 parent 32ba549 commit 5d44ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2s/i2s_ll_stm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d44ebf

Please sign in to comment.