]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit95cfc0a0aaf575207152dd7601e782702565a6f1
tree0c871e7bb05463b74a731e29e59ff0d01838a692
parent5854a46486ad5b8d73766735fb0d77f05956b22c
ASoC: simple-card: Add support for codec2codec DAI links

Following the example in cb2cf0de1174 ("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