Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1fdb5d25 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: simple-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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3296d078
Loading
Loading
Loading
Loading
+3 −7
Original line number Original line Diff line number Diff line
@@ -362,13 +362,9 @@ static int asoc_simple_card_parse_of(struct simple_card_data *priv)
			goto card_parse_end;
			goto card_parse_end;
	}
	}


	/* DAPM routes */
	ret = asoc_simple_card_of_parse_routing(card, PREFIX, 1);
	if (of_property_read_bool(node, PREFIX "routing")) {
	if (ret < 0)
		ret = snd_soc_of_parse_audio_routing(card,
					PREFIX "routing");
		if (ret)
		goto card_parse_end;
		goto card_parse_end;
	}


	/* Factor to mclk, used in hw_params() */
	/* Factor to mclk, used in hw_params() */
	of_property_read_u32(node, PREFIX "mclk-fs", &priv->mclk_fs);
	of_property_read_u32(node, PREFIX "mclk-fs", &priv->mclk_fs);