aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-09 16:46:27 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-10 05:37:19 -0400
commit45c0a188ca59e7e7994dc5e8e0b3632fc82ec878 (patch)
tree35718d885eb3705f7799dd31265f7db56833f1e4 /sound/soc/soc-pcm.c
parent9d0403e8a16bc9790ab4211b8289836c8765aa0f (diff)
ASoC: pcm: Staticise non-exported functions
They pollute the global namespace and cause sparse to complain. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 4f824cbd66f4..bedd1717a373 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -632,7 +632,8 @@ static int soc_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
632 return 0; 632 return 0;
633} 633}
634 634
635int soc_pcm_bespoke_trigger(struct snd_pcm_substream *substream, int cmd) 635static int soc_pcm_bespoke_trigger(struct snd_pcm_substream *substream,
636 int cmd)
636{ 637{
637 struct snd_soc_pcm_runtime *rtd = substream->private_data; 638 struct snd_soc_pcm_runtime *rtd = substream->private_data;
638 struct snd_soc_platform *platform = rtd->platform; 639 struct snd_soc_platform *platform = rtd->platform;
@@ -1087,7 +1088,7 @@ unwind:
1087 return err; 1088 return err;
1088} 1089}
1089 1090
1090void dpcm_set_fe_runtime(struct snd_pcm_substream *substream) 1091static void dpcm_set_fe_runtime(struct snd_pcm_substream *substream)
1091{ 1092{
1092 struct snd_pcm_runtime *runtime = substream->runtime; 1093 struct snd_pcm_runtime *runtime = substream->runtime;
1093 struct snd_soc_pcm_runtime *rtd = substream->private_data; 1094 struct snd_soc_pcm_runtime *rtd = substream->private_data;
@@ -1247,7 +1248,7 @@ static int dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream)
1247 return 0; 1248 return 0;
1248} 1249}
1249 1250
1250int dpcm_fe_dai_hw_free(struct snd_pcm_substream *substream) 1251static int dpcm_fe_dai_hw_free(struct snd_pcm_substream *substream)
1251{ 1252{
1252 struct snd_soc_pcm_runtime *fe = substream->private_data; 1253 struct snd_soc_pcm_runtime *fe = substream->private_data;
1253 int err, stream = substream->stream; 1254 int err, stream = substream->stream;
@@ -1354,8 +1355,8 @@ unwind:
1354 return ret; 1355 return ret;
1355} 1356}
1356 1357
1357int dpcm_fe_dai_hw_params(struct snd_pcm_substream *substream, 1358static int dpcm_fe_dai_hw_params(struct snd_pcm_substream *substream,
1358 struct snd_pcm_hw_params *params) 1359 struct snd_pcm_hw_params *params)
1359{ 1360{
1360 struct snd_soc_pcm_runtime *fe = substream->private_data; 1361 struct snd_soc_pcm_runtime *fe = substream->private_data;
1361 int ret, stream = substream->stream; 1362 int ret, stream = substream->stream;
@@ -1404,7 +1405,8 @@ static int dpcm_do_trigger(struct snd_soc_dpcm *dpcm,
1404 return ret; 1405 return ret;
1405} 1406}
1406 1407
1407int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd) 1408static int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream,
1409 int cmd)
1408{ 1410{
1409 struct snd_soc_dpcm *dpcm; 1411 struct snd_soc_dpcm *dpcm;
1410 int ret = 0; 1412 int ret = 0;
@@ -1497,7 +1499,7 @@ int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream, int cmd)
1497} 1499}
1498EXPORT_SYMBOL_GPL(dpcm_be_dai_trigger); 1500EXPORT_SYMBOL_GPL(dpcm_be_dai_trigger);
1499 1501
1500int dpcm_fe_dai_trigger(struct snd_pcm_substream *substream, int cmd) 1502static int dpcm_fe_dai_trigger(struct snd_pcm_substream *substream, int cmd)
1501{ 1503{
1502 struct snd_soc_pcm_runtime *fe = substream->private_data; 1504 struct snd_soc_pcm_runtime *fe = substream->private_data;
1503 int stream = substream->stream, ret; 1505 int stream = substream->stream, ret;
@@ -1605,7 +1607,7 @@ static int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream)
1605 return ret; 1607 return ret;
1606} 1608}
1607 1609
1608int dpcm_fe_dai_prepare(struct snd_pcm_substream *substream) 1610static int dpcm_fe_dai_prepare(struct snd_pcm_substream *substream)
1609{ 1611{
1610 struct snd_soc_pcm_runtime *fe = substream->private_data; 1612 struct snd_soc_pcm_runtime *fe = substream->private_data;
1611 int stream = substream->stream, ret = 0; 1613 int stream = substream->stream, ret = 0;
@@ -1935,7 +1937,7 @@ int soc_dpcm_be_digital_mute(struct snd_soc_pcm_runtime *fe, int mute)
1935 return 0; 1937 return 0;
1936} 1938}
1937 1939
1938int dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream) 1940static int dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream)
1939{ 1941{
1940 struct snd_soc_pcm_runtime *fe = fe_substream->private_data; 1942 struct snd_soc_pcm_runtime *fe = fe_substream->private_data;
1941 struct snd_soc_dpcm *dpcm; 1943 struct snd_soc_dpcm *dpcm;
@@ -1972,7 +1974,7 @@ int dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream)
1972 return ret; 1974 return ret;
1973} 1975}
1974 1976
1975int dpcm_fe_dai_close(struct snd_pcm_substream *fe_substream) 1977static int dpcm_fe_dai_close(struct snd_pcm_substream *fe_substream)
1976{ 1978{
1977 struct snd_soc_pcm_runtime *fe = fe_substream->private_data; 1979 struct snd_soc_pcm_runtime *fe = fe_substream->private_data;
1978 struct snd_soc_dpcm *dpcm; 1980 struct snd_soc_dpcm *dpcm;