LF-601-1: ASoC: fsl_esai: Switch to imx-pcm-dma-v2
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 4 Mar 2020 08:35:25 +0000 (16:35 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 02:56:26 +0000 (10:56 +0800)
commit9a96d4da3a5354b357e4a10dac91b8cbeeab17b7
tree6fa8322b7c290ed9b64bdc6b64dfb1d543f766b4
parent1d52400fcd7cef0a56b256bb2cec10d7c84b24c0
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>
sound/soc/fsl/fsl_esai.c