Skip to content

Commit 0e9c1fc

Browse files
notropopcornmix
authored andcommitted
dmaengine: bcm2835: set residue_granularity field
bcm2835-dma supports residue reporting at burst level but didn't report this via the residue_granularity field. Without this field set properly we get playback issues with I2S cards. [by HiassofT, taken from bcm2708-dmaengine] Signed-off-by: Noralf Trønnes <[email protected]>
1 parent c776a0f commit 0e9c1fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/bcm2835-dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev)
802802
od->ddev.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
803803
od->ddev.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
804804
od->ddev.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);
805+
od->ddev.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
805806
od->ddev.dev = &pdev->dev;
806807
INIT_LIST_HEAD(&od->ddev.channels);
807808
spin_lock_init(&od->lock);

0 commit comments

Comments
 (0)