diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-07-16 08:12:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-16 17:09:08 -0400 |
commit | e8ffacee0adacc1a1312a14acb123544cd4094b9 (patch) | |
tree | 48884b87b841abcacbfddccc16a203947b6e01fd | |
parent | 24600b54724ca8c7acc2d5b33b3178bb3f7a5c29 (diff) |
ASoC: edma-pcm: Add empty functions for !CONFIG_SND_EDMA_SOC builds
So drivers mixing with other platform drivers, like davinci-mcasp do not
need to fiddle with CONFIG_SND_EDMA_SOC in their code.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/davinci/edma-pcm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/davinci/edma-pcm.h b/sound/soc/davinci/edma-pcm.h index 894c378c0f74..b0957744851c 100644 --- a/sound/soc/davinci/edma-pcm.h +++ b/sound/soc/davinci/edma-pcm.h | |||
@@ -20,6 +20,13 @@ | |||
20 | #ifndef __EDMA_PCM_H__ | 20 | #ifndef __EDMA_PCM_H__ |
21 | #define __EDMA_PCM_H__ | 21 | #define __EDMA_PCM_H__ |
22 | 22 | ||
23 | #if IS_ENABLED(CONFIG_SND_EDMA_SOC) | ||
23 | int edma_pcm_platform_register(struct device *dev); | 24 | int edma_pcm_platform_register(struct device *dev); |
25 | #else | ||
26 | static inline int edma_pcm_platform_register(struct device *dev) | ||
27 | { | ||
28 | return 0; | ||
29 | } | ||
30 | #endif /* CONFIG_SND_EDMA_SOC */ | ||
24 | 31 | ||
25 | #endif /* __EDMA_PCM_H__ */ | 32 | #endif /* __EDMA_PCM_H__ */ |