Skip to content

Commit

Permalink
ASoC: edma-pcm: Add empty functions for !CONFIG_SND_EDMA_SOC builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Ujfalusi authored and Mark Brown committed Jul 16, 2014
1 parent 24600b5 commit e8fface
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sound/soc/davinci/edma-pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
#ifndef __EDMA_PCM_H__
#define __EDMA_PCM_H__

#if IS_ENABLED(CONFIG_SND_EDMA_SOC)
int edma_pcm_platform_register(struct device *dev);
#else
static inline int edma_pcm_platform_register(struct device *dev)
{
return 0;
}
#endif /* CONFIG_SND_EDMA_SOC */

#endif /* __EDMA_PCM_H__ */

0 comments on commit e8fface

Please sign in to comment.