]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_routing()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 15 Jun 2017 00:25:51 +0000 (00:25 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jun 2017 17:15:06 +0000 (18:15 +0100)
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>
sound/soc/generic/audio-graph-scu-card.c

index 9502f6ed14b8a33b146137dc9ff4ca0153bf8a81..05934b24627bfbdcf78f611e8d4189dad7c7644f 100644 (file)
@@ -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);