aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/ti/udma-pcm.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2020-02-10 16:09:49 +0200
committerMark Brown <broonie@kernel.org>2020-02-11 11:47:55 +0000
commit2619e03703475b7e0a6f73f85e642859cd25dfc8 (patch)
treedea04e24f95bd633480b01c76960ea27a3f5e3c7 /sound/soc/ti/udma-pcm.h
parentea00d95200d02ece71f5814d41b14f2eb16d598b (diff)
downloadlinux-2619e03703475b7e0a6f73f85e642859cd25dfc8.tar.gz
ASoC: ti: Add udma-pcm platform driver for UDMA
Platform driver glue for platforms using UDMA (am654 and j721e). Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Link: https://lore.kernel.org/r/20200210140950.11090-2-peter.ujfalusi@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ti/udma-pcm.h')
-rw-r--r--sound/soc/ti/udma-pcm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sound/soc/ti/udma-pcm.h b/sound/soc/ti/udma-pcm.h
new file mode 100644
index 000000000000..54111e7312c1
--- /dev/null
+++ b/sound/soc/ti/udma-pcm.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com
+ */
+
+#ifndef __UDMA_PCM_H__
+#define __UDMA_PCM_H__
+
+#if IS_ENABLED(CONFIG_SND_SOC_TI_UDMA_PCM)
+int udma_pcm_platform_register(struct device *dev);
+#else
+static inline int udma_pcm_platform_register(struct device *dev)
+{
+ return 0;
+}
+#endif /* CONFIG_SND_SOC_TI_UDMA_PCM */
+
+#endif /* __UDMA_PCM_H__ */