summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm.h
diff options
context:
space:
mode:
authorViorel Suman <viorel.suman@nxp.com>2017-05-01 14:57:02 +0300
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:23 +0800
commit3515ccf42e7d61d44d5dbdd7805be528a0d161b5 (patch)
tree834d09fb640bc1585ae5dd84900f7ad44040184f /sound/soc/fsl/imx-pcm.h
parentc235425c0052c5a59730cc66c8436192ac14105d (diff)
ASoC: fsl: add imx-pcm-dma v2 platform driver (part 1)
which don't request the dma channel in the probe, but request dma channel when needed. for the dma channel of cpu dai in BE can be reused by the FE. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> [ Aisheng: spli SAI DAI changes ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-pcm.h')
-rw-r--r--sound/soc/fsl/imx-pcm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-pcm.h b/sound/soc/fsl/imx-pcm.h
index 1c78f45f39ee..5e4f3892feef 100644
--- a/sound/soc/fsl/imx-pcm.h
+++ b/sound/soc/fsl/imx-pcm.h
@@ -50,11 +50,16 @@ static inline int imx_rpmsg_platform_register(struct device *dev)
#if IS_ENABLED(CONFIG_SND_SOC_IMX_PCM_DMA)
int imx_pcm_dma_init(struct platform_device *pdev, size_t size);
+int imx_pcm_platform_register(struct device *dev);
#else
static inline int imx_pcm_dma_init(struct platform_device *pdev, size_t size)
{
return -ENODEV;
}
+static inline int imx_pcm_platform_register(struct device *dev);
+{
+ return -ENODEV;
+}
#endif
#if IS_ENABLED(CONFIG_SND_SOC_IMX_PCM_FIQ)