MLK-23906-2: ASoC: fsl_aud2htx: Switch to imx-pcm-dma-v2
With imx-pcm-dma, the dma channel is created in probe, when there is power domain attached with dma device, the power domain will be enabled when channel is created, then the power of the domain will be always enabled from beginning. So switch to imx-pcm-dma-v2, then the dma channel will be created when playback or capture really started. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
4ac1cd1136
commit
7cdd916faa
|
@ -280,7 +280,7 @@ static int fsl_aud2htx_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret = imx_pcm_dma_init(pdev, IMX_DEFAULT_DMABUF_SIZE);
|
||||
ret = imx_pcm_platform_register(&pdev->dev);
|
||||
if (ret)
|
||||
dev_err(&pdev->dev, "failed to init imx pcm dma: %d\n", ret);
|
||||
|
||||
|
|
Loading…
Reference in New Issue