mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
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>
This commit is contained in:
parent
bfe6b58982
commit
9fb9b2f236
1 changed files with 2 additions and 2 deletions
|
@ -195,8 +195,8 @@ static int asoc_graph_card_parse_of(struct graph_card_data *priv)
|
||||||
* see simple-card
|
* see simple-card
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ret = snd_soc_of_parse_audio_routing(card, "routing");
|
ret = asoc_simple_card_of_parse_routing(card, NULL, 0);
|
||||||
if (ret)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
asoc_simple_card_parse_convert(dev, NULL, &priv->adata);
|
asoc_simple_card_parse_convert(dev, NULL, &priv->adata);
|
||||||
|
|
Loading…
Reference in a new issue