diff options
author | Samuel Holland <samuel@sholland.org> | 2020-03-04 23:11:42 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-06 14:24:10 +0000 |
commit | 5854a46486ad5b8d73766735fb0d77f05956b22c (patch) | |
tree | 9a2d0181c4c33e2abc968e11b5d3cfbe6cc8826e /include/sound/soc.h | |
parent | 4769bfb9dada678b31a2ec275372624dbfeed9d1 (diff) | |
download | linux-5854a46486ad5b8d73766735fb0d77f05956b22c.tar.bz2 |
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.h | 3 |
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); |