summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorBenoit Cousson <bcousson@baylibre.com>2014-07-09 01:19:38 +0400
committerMark Brown <broonie@linaro.org>2014-07-17 02:06:27 +0400
commit93e6958a3674d2fa42e2c24ad5156e65da1d8621 (patch)
tree15b50754451784b8c65707975cfbebe304bf8bb6 /include/sound
parent8151d5e60232d31f35e04f4e49a5b0d98b00a737 (diff)
downloadlinux-93e6958a3674d2fa42e2c24ad5156e65da1d8621.tar.xz
ASoC: pcm: Add soc_dai_hw_params helper
Add a function helper to factorize the hw_params code. Suggested by Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Benoit Cousson <bcousson@baylibre.com> Tested-by: Lars-Peter Clausen <lars@metafoo.de> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index f2142cf3f243..98555f833ab4 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -436,6 +436,10 @@ int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
int snd_soc_platform_trigger(struct snd_pcm_substream *substream,
int cmd, struct snd_soc_platform *platform);
+int soc_dai_hw_params(struct snd_pcm_substream *substream,
+ struct snd_pcm_hw_params *params,
+ struct snd_soc_dai *dai);
+
/* Jack reporting */
int snd_soc_jack_new(struct snd_soc_codec *codec, const char *id, int type,
struct snd_soc_jack *jack);