diff options
author | Nicolin Chen <nicoleotsuka@gmail.com> | 2015-02-14 17:22:50 -0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-24 23:46:13 +0900 |
commit | 3185878a70e721644b0e32ebbc0a039616551949 (patch) | |
tree | 4c2ef05b781c2f71ba6bf1a9d6a70f502366e6d2 /sound/soc | |
parent | f23e860edbb3f2208c0ab3448e756689bb4a3760 (diff) | |
download | linux-3185878a70e721644b0e32ebbc0a039616551949.tar.bz2 |
ASoC: fsl-asoc-card: Add snd_soc_of_parse_audio_routing()
This patch adds snd_soc_of_parse_audio_routing() to get dapm routes
configurations via Device Tree.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/fsl/fsl-asoc-card.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 3f6959c8e2f7..de438871040b 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -512,6 +512,12 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) memcpy(priv->dai_link, fsl_asoc_card_dai, sizeof(struct snd_soc_dai_link) * ARRAY_SIZE(priv->dai_link)); + ret = snd_soc_of_parse_audio_routing(&priv->card, "audio-routing"); + if (ret) { + dev_err(&pdev->dev, "failed to parse audio-routing: %d\n", ret); + goto asrc_fail; + } + /* Normal DAI Link */ priv->dai_link[0].cpu_of_node = cpu_np; priv->dai_link[0].codec_of_node = codec_np; |