diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2021-10-25 13:55:03 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-25 19:41:25 +0300 |
commit | 4b29d5a0bdb9c0d52356dd04b4c08180e0c8aa71 (patch) | |
tree | 47077025a269966de717bb0a89dff55cfb840e24 /include/sound/soc-topology.h | |
parent | de6e9190a8a74d55ed936ec483919b328bbbbf5c (diff) | |
download | linux-4b29d5a0bdb9c0d52356dd04b4c08180e0c8aa71.tar.xz |
ASoC: qcom: common: Respect status = "disabled" on DAI link nodes
At the moment, the DAI link nodes in the device tree always have to be
specified completely in each device tree. However, the available
interfaces (e.g. Primary/Secondary/Tertiary/Quaternary MI2S) are common
for all devices of a SoC, so the majority of the definitions can be
placed in a common device tree include to reduce boilerplate.
Make it possible to define such stubs in device tree includes by
respecting the "status" property for the DAI link nodes. This is
a trivial change that just requires switching to the _available_
OF functions that check the "status" property additionally.
This allows defining a stub like:
sound_dai_quaternary: dai-link-quaternary {
link-name = "Quaternary MI2S";
status = "disabled"; /* Needs extra codec configuration */
cpu {
sound-dai = <&q6afedai QUATERNARY_MI2S_RX>;
};
platform {
sound-dai = <&q6routing>;
};
};
where the codec would be filled in by the device-specific device tree.
For existing device trees this change does not make any difference.
A missing "status" property is treated like status = "okay".
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20211025105503.49444-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-topology.h')
0 files changed, 0 insertions, 0 deletions