LF-601-2: ASoC: fsl_esai: add chan_name for dma_params
authorShengjiu Wang <shengjiu.wang@nxp.com>
Sat, 7 Mar 2020 02:57:31 +0000 (10:57 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 02:56:26 +0000 (10:56 +0800)
The chan_name is missed, otherwise:

[   68.051062] of_dma_request_slave_channel: not enough information provided
[   68.058700] fsl-esai-dai 59010000.esai: ASoC: can't open component 59010000.esai: -6

Fixes: 6ee6ebd6efae ("LF-601-1: ASoC: fsl_esai: Switch to imx-pcm-dma-v2")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
sound/soc/fsl/fsl_esai.c

index e2e33b3..23d7912 100644 (file)
@@ -1076,6 +1076,8 @@ static int fsl_esai_probe(struct platform_device *pdev)
 
        esai_priv->dma_params_tx.maxburst = 16;
        esai_priv->dma_params_rx.maxburst = 16;
+       esai_priv->dma_params_rx.chan_name = "rx";
+       esai_priv->dma_params_tx.chan_name = "tx";
        esai_priv->dma_params_tx.addr = res->start + REG_ESAI_ETDR;
        esai_priv->dma_params_rx.addr = res->start + REG_ESAI_ERDR;