ARM: 7857/1: dma: imx-sdma: setup dma mask
The dma mask is not configured in the current code. This was triggered by soc-dmaengine-pcm which allocate the dma buffers with the imx-sdma as device. This commit fix audio on imx31. Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
536dc1eb6b
commit
42536b9f9c
1 changed files with 4 additions and 0 deletions
|
@ -1432,6 +1432,10 @@ static int __init sdma_probe(struct platform_device *pdev)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
sdma = kzalloc(sizeof(*sdma), GFP_KERNEL);
|
sdma = kzalloc(sizeof(*sdma), GFP_KERNEL);
|
||||||
if (!sdma)
|
if (!sdma)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Loading…
Add table
Reference in a new issue