From 7cdd916faab4c7623db1c7c8d2b2214ab500c2b8 Mon Sep 17 00:00:00 2001 From: Shengjiu Wang Date: Wed, 6 May 2020 13:38:16 +0800 Subject: 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 Reviewed-by: Viorel Suman --- sound/soc/fsl/fsl_aud2htx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/soc/fsl/fsl_aud2htx.c') diff --git a/sound/soc/fsl/fsl_aud2htx.c b/sound/soc/fsl/fsl_aud2htx.c index bb689ed93d05..b542a1ae486b 100644 --- a/sound/soc/fsl/fsl_aud2htx.c +++ b/sound/soc/fsl/fsl_aud2htx.c @@ -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); -- cgit v1.2.3