Skip to content

Commit

Permalink
ASoC: rockchip: i2s: fix maxburst of dma data to 4
Browse files Browse the repository at this point in the history
Since RK3288 DMAC's burst length only support max to 4, here
set maxburst of playback and capture dma data to 4.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Jianqun Xu authored and Mark Brown committed Dec 24, 2014
1 parent 4db9c4a commit 27fd36a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/rockchip/rockchip_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,11 @@ static int rockchip_i2s_probe(struct platform_device *pdev)

i2s->playback_dma_data.addr = res->start + I2S_TXDR;
i2s->playback_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
i2s->playback_dma_data.maxburst = 16;
i2s->playback_dma_data.maxburst = 4;

i2s->capture_dma_data.addr = res->start + I2S_RXDR;
i2s->capture_dma_data.addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
i2s->capture_dma_data.maxburst = 16;
i2s->capture_dma_data.maxburst = 4;

i2s->dev = &pdev->dev;
dev_set_drvdata(&pdev->dev, i2s);
Expand Down

0 comments on commit 27fd36a

Please sign in to comment.