]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card: Add support for codec2codec DAI links
authorSamuel Holland <samuel@sholland.org>
Thu, 5 Mar 2020 05:11:43 +0000 (23:11 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 6 Mar 2020 14:24:11 +0000 (14:24 +0000)
commit580ced0abcf05c581ca4ade3d56eeace8cbcf21e
tree0c871e7bb05463b74a731e29e59ff0d01838a692
parent620f0a0d642a926b954570a7c54cca6318b24b92
ASoC: simple-card: Add support for codec2codec DAI links

Following the example in c5ec76efaec9 ("ASoC: soc-core: care Codec <->
Codec case by non_legacy_dai_naming"), determine if a DAI link contains
only codec DAIs by examining the non_legacy_dai_naming flag in each
DAI's component.

For now, we assume there is only one or a small set of valid PCM stream
parameters, so num_params == 1 is good enough. We also assume that the
same params are valid for all supported streams. params is set to the
subset of parameters common among all DAIs, and then the existing code
automatically chooses the highest quality of the remaining values when
the link is brought up.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20200305051143.60691-4-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/sound/soc/codec-to-codec.rst
sound/soc/generic/simple-card-utils.c