summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@nxp.com>2019-06-28 13:16:35 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:51:22 +0800
commitc235425c0052c5a59730cc66c8436192ac14105d (patch)
tree36fed3e594d33d5ca1dee90f036afa66f9131fc5
parent6170d91a8b32e8569add45691d0e84135ac935ef (diff)
MLK-13904-1: ASoC: fsl: add audio cpu dai driver base on rpmsg (part 2)
Add the cpu dai driver, as the rpmsg_send api can't be used in atomic context, so using the workqueue instead of calling rpmsg_send() directly. The detail communication stack is defined in header file. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com> Acked-by: Robin Gong <yibin.gong@nxp.com> [ Aisheng: split out rpmsg changes ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
-rw-r--r--sound/soc/fsl/imx-pcm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-pcm.h b/sound/soc/fsl/imx-pcm.h
index 5dd406774d3e..1c78f45f39ee 100644
--- a/sound/soc/fsl/imx-pcm.h
+++ b/sound/soc/fsl/imx-pcm.h
@@ -39,6 +39,15 @@ struct imx_pcm_fiq_params {
struct snd_dmaengine_dai_dma_data *dma_params_tx;
};
+#if IS_ENABLED(CONFIG_SND_SOC_IMX_PCM_RPMSG)
+int imx_rpmsg_platform_register(struct device *dev);
+#else
+static inline int imx_rpmsg_platform_register(struct device *dev)
+{
+ return -ENODEV;
+}
+#endif
+
#if IS_ENABLED(CONFIG_SND_SOC_IMX_PCM_DMA)
int imx_pcm_dma_init(struct platform_device *pdev, size_t size);
#else