diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2020-02-10 16:09:49 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-11 11:47:55 +0000 |
commit | 2619e03703475b7e0a6f73f85e642859cd25dfc8 (patch) | |
tree | dea04e24f95bd633480b01c76960ea27a3f5e3c7 /sound/soc/ti/udma-pcm.h | |
parent | ea00d95200d02ece71f5814d41b14f2eb16d598b (diff) | |
download | linux-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.h | 18 |
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__ */ |