summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-03-05 06:11:42 +0100
committerMark Brown <broonie@kernel.org>2020-03-06 15:24:10 +0100
commit5854a46486ad5b8d73766735fb0d77f05956b22c (patch)
tree9a2d0181c4c33e2abc968e11b5d3cfbe6cc8826e /include/sound/soc.h
parentALSA: pcm: Add a standalone version of snd_pcm_limit_hw_rates (diff)
downloadlinux-5854a46486ad5b8d73766735fb0d77f05956b22c.tar.xz
linux-5854a46486ad5b8d73766735fb0d77f05956b22c.zip
ASoC: pcm: Export parameter intersection logic
The logic to calculate the subset of stream parameters supported by all DAIs associated with a PCM stream is nontrivial. Export a helper function so it can be used to set up simple codec2codec DAI links. Signed-off-by: Samuel Holland <samuel@sholland.org> Link: https://lore.kernel.org/r/20200305051143.60691-3-samuel@sholland.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 81e5d17be935..9543d9246ca4 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -471,6 +471,9 @@ bool snd_soc_runtime_ignore_pmdown_time(struct snd_soc_pcm_runtime *rtd);
void snd_soc_runtime_activate(struct snd_soc_pcm_runtime *rtd, int stream);
void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream);
+int snd_soc_runtime_calc_hw(struct snd_soc_pcm_runtime *rtd,
+ struct snd_pcm_hardware *hw, int stream);
+
int snd_soc_runtime_set_dai_fmt(struct snd_soc_pcm_runtime *rtd,
unsigned int dai_fmt);