mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
ARM i.MX dma: Fix burstsize settings
dmaengine expects the maxburst parameter in words, not bytes. The imxdma driver and its users do this wrong. Fix this. As a side note the imx-pcm-dma-mx2 driver was 'fixed' to work with imx-dma. This broke the driver with imx-sdma support which correctly takes the maxburst parameter in words. This patch puts the sdma based sound back to work. Signed-off-by: Sascha Hauer <[email protected]>
This commit is contained in:
parent
9d73242458
commit
6584cb8825
3 changed files with 8 additions and 7 deletions
|
|
@ -135,7 +135,8 @@ static int imxdma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
imx_dma_config_burstlen(imxdmac->imxdma_channel, imxdmac->watermark_level);
|
||||
imx_dma_config_burstlen(imxdmac->imxdma_channel,
|
||||
imxdmac->watermark_level * imxdmac->word_size);
|
||||
|
||||
return 0;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue