diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2016-09-06 10:57:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-06 12:28:23 +0100 |
commit | 05f9033f74798aa27569ad7866b952ff51f83c26 (patch) | |
tree | b74ffb260f7a1fe12315aa920c7ea16370871abb /sound/soc | |
parent | 1190300d03516d00f68abcb01bfab00835bc0ac5 (diff) | |
download | linux-05f9033f74798aa27569ad7866b952ff51f83c26.tar.bz2 |
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')
-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); |