ASoC: pcm: Export parameter intersection logic
authorSamuel Holland <samuel@sholland.org>
Thu, 5 Mar 2020 05:11:42 +0000 (23:11 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2020 14:24:10 +0000 (14:24 +0000)
commit5854a46486ad5b8d73766735fb0d77f05956b22c
tree9a2d0181c4c33e2abc968e11b5d3cfbe6cc8826e
parent4769bfb9dada678b31a2ec275372624dbfeed9d1
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>
include/sound/soc.h
sound/soc/soc-pcm.c