Skip to content

Commit fcf882f

Browse files
committed
drivers/mediatek/afe: Fix DMA buffer alignment for MT818X and MT8195
DMA buffer alignment for MT818X and MT8195 must be set to 0x40 Signed-off-by: Andrew Perepech <andrew.perepech@mediatek.com>
1 parent 6dbb40c commit fcf882f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/drivers/mediatek/afe/afe-memif.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,11 @@ static int memif_get_attribute(struct dma *dma, uint32_t type, uint32_t *value)
437437
*value = 4;
438438
break;
439439
case DMA_ATTR_BUFFER_ADDRESS_ALIGNMENT:
440+
#if defined(CONFIG_SOC_SERIES_MT818X) || defined(CONFIG_SOC_MT8195)
441+
*value = 64;
442+
#else
440443
*value = 16;
444+
#endif
441445
break;
442446
case DMA_ATTR_BUFFER_PERIOD_COUNT:
443447
*value = 4;

0 commit comments

Comments
 (0)