Skip to content

Commit 2bc15b4

Browse files
alxreynashif
authored andcommitted
drivers: i2s: mcux_sai: correct DMA burst length
Set DMA burst length in bytes. Fixes a bug introduced in #97777. Signed-off-by: Alexandre Rey <alx.rey@icloud.com>
1 parent 2c2922f commit 2bc15b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/i2s/i2s_mcux_sai.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ static int i2s_mcux_config(const struct device *dev, enum i2s_dir dir,
661661
/*set up dma settings*/
662662
dev_data->tx.dma_cfg.source_data_size = word_size_bytes;
663663
dev_data->tx.dma_cfg.dest_data_size = word_size_bytes;
664-
dev_data->tx.dma_cfg.source_burst_length = word_size_bits;
665-
dev_data->tx.dma_cfg.dest_burst_length = word_size_bits;
664+
dev_data->tx.dma_cfg.source_burst_length = word_size_bytes;
665+
dev_data->tx.dma_cfg.dest_burst_length = word_size_bytes;
666666
dev_data->tx.dma_cfg.user_data = (void *)dev;
667667
dev_data->tx.state = I2S_STATE_READY;
668668
} else {
@@ -687,8 +687,8 @@ static int i2s_mcux_config(const struct device *dev, enum i2s_dir dir,
687687
/*set up dma settings*/
688688
dev_data->rx.dma_cfg.source_data_size = word_size_bytes;
689689
dev_data->rx.dma_cfg.dest_data_size = word_size_bytes;
690-
dev_data->rx.dma_cfg.source_burst_length = word_size_bits;
691-
dev_data->rx.dma_cfg.dest_burst_length = word_size_bits;
690+
dev_data->rx.dma_cfg.source_burst_length = word_size_bytes;
691+
dev_data->rx.dma_cfg.dest_burst_length = word_size_bytes;
692692
dev_data->rx.dma_cfg.user_data = (void *)dev;
693693
dev_data->rx.state = I2S_STATE_READY;
694694
}

0 commit comments

Comments
 (0)