treewide: use wpad-basic-wolfssl as default
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 801-audio-0023-ASoC-fsl-add-imx-pcm-dma-v2-platform-driver-part-2.patch
1 From 5d816f1a5cac458a7fff9ecf896c85eb351a7352 Mon Sep 17 00:00:00 2001
2 From: Viorel Suman <viorel.suman@nxp.com>
3 Date: Mon, 30 Mar 2020 16:24:59 +0800
4 Subject: [PATCH] ASoC: fsl: add imx-pcm-dma v2 platform driver (part 2)
5
6 which don't request the dma channel in the probe, but request
7 dma channel when needed. for the dma channel of cpu dai in BE
8 can be reused by the FE.
9
10 Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
11 [ Aisheng: split PCM changes ]
12 Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
13 [rebase]
14 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
15 ---
16 sound/soc/fsl/fsl_sai.c | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
18
19 --- a/sound/soc/fsl/fsl_sai.c
20 +++ b/sound/soc/fsl/fsl_sai.c
21 @@ -1046,6 +1046,8 @@ static int fsl_sai_probe(struct platform
22 MCLK_DIR(index));
23 }
24
25 + sai->dma_params_rx.filter_data = "rx";
26 + sai->dma_params_tx.filter_data = "tx";
27 sai->dma_params_rx.addr = res->start + FSL_SAI_RDR0;
28 sai->dma_params_tx.addr = res->start + FSL_SAI_TDR0;
29 sai->dma_params_rx.maxburst = FSL_SAI_MAXBURST_RX;
30 @@ -1061,7 +1063,7 @@ static int fsl_sai_probe(struct platform
31 goto err_pm_disable;
32
33 if (sai->soc->imx)
34 - ret = imx_pcm_dma_init(pdev, IMX_SAI_DMABUF_SIZE);
35 + ret = imx_pcm_platform_register(&pdev->dev);
36 if (ret)
37 goto err_pm_disable;
38 } else {