OSDN Git Service

ASoC: simple-scu-card: use asoc_simple_card_of_parse_routing()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 15 Jun 2017 00:25:33 +0000 (00:25 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Jun 2017 17:15:03 +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/simple-scu-card.c

index 44da691..a75b385 100644 (file)
@@ -191,7 +191,7 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
        if (!node)
                return -EINVAL;
 
-       ret = snd_soc_of_parse_audio_routing(card, PREFIX "routing");
+       ret = asoc_simple_card_of_parse_routing(card, PREFIX, 0);
        if (ret < 0)
                return ret;