diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-06-15 00:25:51 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-06-15 18:15:06 +0100 |
commit | 9fb9b2f236f05168a6138e62c82124a2f5eaf320 (patch) | |
tree | 174dd1eb69333b5351d477862645d4f5ae122f89 /sound/soc/generic | |
parent | bfe6b5898269b92571e502b4d706c815dd6bf53b (diff) | |
download | linux-9fb9b2f236f05168a6138e62c82124a2f5eaf320.tar.bz2 |
ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_routing()
Current simple/audio scu card drivers are supporting same
routing on DT, but, doesn't use same function for it.
Encapsulation is one of simple card util's purpose.
Let's use asoc_simple_card_of_parse_routing
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/generic')
-rw-r--r-- | sound/soc/generic/audio-graph-scu-card.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c index 9502f6ed14b8..05934b24627b 100644 --- a/sound/soc/generic/audio-graph-scu-card.c +++ b/sound/soc/generic/audio-graph-scu-card.c @@ -195,8 +195,8 @@ static int asoc_graph_card_parse_of(struct graph_card_data *priv) * see simple-card */ - ret = snd_soc_of_parse_audio_routing(card, "routing"); - if (ret) + ret = asoc_simple_card_of_parse_routing(card, NULL, 0); + if (ret < 0) return ret; asoc_simple_card_parse_convert(dev, NULL, &priv->adata); |