diff options
author | Stephan Gerhold <stephan@gerhold.net> | 2020-07-23 21:39:01 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-24 17:01:18 +0300 |
commit | 47ea88488209226e03559bb8baaa0156b4025fee (patch) | |
tree | dab9b04dd7f76482b2d1875cbe9f2b5ca28ed89a /drivers/ptp | |
parent | 0a8c336a1e020be3832b02e1ddbb92d61da87512 (diff) | |
download | linux-47ea88488209226e03559bb8baaa0156b4025fee.tar.xz |
ASoC: qcom: common: Support parsing links without DPCM
So far qcom_snd_parse_of() was only used to parse the device tree
for boards using the QDSP6 driver together with DPCM. apq8016_sbc
uses an almost identical version (apq8016_sbc_parse_of()) which
parses links without DPCM.
Given the similarity of the two functions it is useful to combine
these two. To allow using qcom_snd_parse_of() in apq8016_sbc we
need to support parsing links without DPCM as well.
This is pretty simple: A DPCM link in the device tree is defined using:
- DPCM frontend: "cpu"
- DPCM backend: "cpu", "platform" and "codec"
... while a link without DPCM has "cpu" and "codec" (but no "platform").
Add a few more if conditions to handle links without DPCM correctly.
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200723183904.321040-5-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions