summaryrefslogtreecommitdiff
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2020-03-04 16:35:25 +0800
committerShengjiu Wang <shengjiu.wang@nxp.com>2020-03-05 12:18:48 +0800
commite827b5e3f9a43d2ddc46de46ef2a5272d98ffbb6 (patch)
tree2e6a9b457d17f52910747a5b7e378db3724c58f7 /sound/soc/fsl
parent18acf2d4b613ceb4745e634cbcad2de4b670587d (diff)
LF-601-1: ASoC: fsl_esai: Switch to imx-pcm-dma-v2
With the imx-pcm-dma, the dma channel will be allocated in probe, with EDMA, the channel allocation is fixed for each peripheral. In ASRC->ESAI->CODEC case, we have two sound card device, hw:x,0 and hw:x,1, with imx-pcm-dma, the channel for esai will be ocuppied by hw:x,0 in boot up. when asrc platform driver want to request the dma channnel for esai, it will fail. So we switch to imx-pcm-dma-v2, with imx-pcm-dma-v2, the dma channel is allocated when running, not in probe. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_esai.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c
index 3426d324acf9..a46b54de0b19 100644
--- a/sound/soc/fsl/fsl_esai.c
+++ b/sound/soc/fsl/fsl_esai.c
@@ -1148,7 +1148,7 @@ static int fsl_esai_probe(struct platform_device *pdev)
regcache_cache_only(esai_priv->regmap, true);
- ret = imx_pcm_dma_init(pdev, IMX_ESAI_DMABUF_SIZE);
+ ret = imx_pcm_platform_register(&pdev->dev);
if (ret)
dev_err(&pdev->dev, "failed to init imx pcm dma: %d\n", ret);