summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_aud2htx.c
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-05-06 13:38:16 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-05-07 17:17:42 +0800
commit7cdd916faab4c7623db1c7c8d2b2214ab500c2b8 (patch)
treea1f11238703db428337370e2e45c3af6cfe8005c /sound/soc/fsl/fsl_aud2htx.c
parent4ac1cd11362535169992111db518e3e789f66fe7 (diff)
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>
Diffstat (limited to 'sound/soc/fsl/fsl_aud2htx.c')
-rw-r--r--sound/soc/fsl/fsl_aud2htx.c2
1 files changed, 1 insertions, 1 deletions
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);