提交 bfe6b589 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: simple-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: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 1fdb5d25
...@@ -191,7 +191,7 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv) ...@@ -191,7 +191,7 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
if (!node) if (!node)
return -EINVAL; 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) if (ret < 0)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册