diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2016-09-06 11:57:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-06 13:28:23 +0200 |
commit | 05f9033f74798aa27569ad7866b952ff51f83c26 (patch) | |
tree | b74ffb260f7a1fe12315aa920c7ea16370871abb /sound/soc/qcom | |
parent | ASoC: qcom: apq8016-sbc: add board specific dapm mic widgets (diff) | |
download | linux-05f9033f74798aa27569ad7866b952ff51f83c26.tar.xz linux-05f9033f74798aa27569ad7866b952ff51f83c26.zip |
ASoC: qcom: apq8016-sbc: add support to routing via DT
This patch adds support to allow audio routing via Device Tree.
This is mostly used to specify MICBIAS and other power supplies
relation.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom')
-rw-r--r-- | sound/soc/qcom/apq8016_sbc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index 5c3ccf3f8fdf..07f91e918b23 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c @@ -85,6 +85,15 @@ static struct apq8016_sbc_data *apq8016_sbc_parse_of(struct snd_soc_card *card) return ERR_PTR(ret); } + /* DAPM routes */ + if (of_property_read_bool(node, "qcom,audio-routing")) { + ret = snd_soc_of_parse_audio_routing(card, + "qcom,audio-routing"); + if (ret) + return ERR_PTR(ret); + } + + /* Populate links */ num_links = of_get_child_count(node); |