aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-12-19 02:37:37 -0500
committerMark Brown <broonie@kernel.org>2017-01-10 07:11:21 -0500
commit96241bae08f63e40dad8f3764e332858b27ba23c (patch)
treede1ebefdae03afd99186486759b927e29fe10ada
parent10611e1b0b7ab2a82dd7838e5e928fa1501d353c (diff)
ASoC: remove snd_soc_platform_trigger()
No one is using snd_soc_platform_trigger(). Let's remove it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--include/sound/soc.h3
-rw-r--r--sound/soc/soc-pcm.c9
2 files changed, 0 insertions, 12 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 1a4311da6126..4504920dce72 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -507,9 +507,6 @@ int snd_soc_params_to_bclk(struct snd_pcm_hw_params *parms);
507int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream, 507int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
508 const struct snd_pcm_hardware *hw); 508 const struct snd_pcm_hardware *hw);
509 509
510int snd_soc_platform_trigger(struct snd_pcm_substream *substream,
511 int cmd, struct snd_soc_platform *platform);
512
513int soc_dai_hw_params(struct snd_pcm_substream *substream, 510int soc_dai_hw_params(struct snd_pcm_substream *substream,
514 struct snd_pcm_hw_params *params, 511 struct snd_pcm_hw_params *params,
515 struct snd_soc_dai *dai); 512 struct snd_soc_dai *dai);
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 1739573dcd6a..dec0b20d3f3e 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2872,15 +2872,6 @@ int snd_soc_dpcm_can_be_params(struct snd_soc_pcm_runtime *fe,
2872} 2872}
2873EXPORT_SYMBOL_GPL(snd_soc_dpcm_can_be_params); 2873EXPORT_SYMBOL_GPL(snd_soc_dpcm_can_be_params);
2874 2874
2875int snd_soc_platform_trigger(struct snd_pcm_substream *substream,
2876 int cmd, struct snd_soc_platform *platform)
2877{
2878 if (platform->driver->ops && platform->driver->ops->trigger)
2879 return platform->driver->ops->trigger(substream, cmd);
2880 return 0;
2881}
2882EXPORT_SYMBOL_GPL(snd_soc_platform_trigger);
2883
2884#ifdef CONFIG_DEBUG_FS 2875#ifdef CONFIG_DEBUG_FS
2885static const char *dpcm_state_string(enum snd_soc_dpcm_state state) 2876static const char *dpcm_state_string(enum snd_soc_dpcm_state state)
2886{ 2877{