ASoC: Declare soc_new_pcm() properly
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Dec 2011 12:16:39 +0000 (12:16 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 22 Dec 2011 17:34:25 +0000 (17:34 +0000)
Ensure that everything is seeing the same declaration by moving it to
a header file rather than putting the declaration in soc-core.c

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/soc.h
sound/soc/soc-core.c

index 8391b0ec217e1e89b961b0051d3869406de72bd7..f75d1ccc5c5895ccfaaf3e92f210cac678ea2200 100644 (file)
@@ -317,6 +317,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);
index a4592cbee49bad40d3dee93fbf9a7e01727517a2..acbb96005a694a791696bbf6fd643c60201e7cb8 100644 (file)
@@ -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.