Skip to contentSkip to conversation

ASoC: Declare soc_new_pcm() properly

PATCH In review Mark Brown 2 participants 2 messages Dec 22, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Declare soc_new_pcm() properly

Ensure that everything is seeing the same declaration by moving it to a header file rather than putting the declaration in soc-core.c

---
 include/sound/soc.h  |    1 +
 sound/soc/soc-core.c |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)
include/sound/soc.h +1 -0
index e5414ed..312dfd3 100644
@@ -323,6 +323,7 @@ int snd_soc_platform_read(struct snd_soc_platform *platform,
 					unsigned int reg);
 int snd_soc_platform_write(struct snd_soc_platform *platform,
 					unsigned int reg, unsigned int val);
+int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num);
 
 /* Utility functions to get clock rates from various things */
 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
sound/soc/soc-core.c +0 -2
index d3fcdc1..d19d0d1 100644
@@ -59,8 +59,6 @@ static LIST_HEAD(dai_list);
 static LIST_HEAD(platform_list);
 static LIST_HEAD(codec_list);
 
-int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num);
-
 /*
  * This is a timeout to do a DAPM powerdown after a stream is closed().
  * It can be used to eliminate pops between different playback streams, e.g.
Signature · 1 line
1.7.7.3