]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ASoC: audio-graph-card2: add support for aux devices
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 17 Jun 2024 04:26:38 +0000 (04:26 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2024 12:08:32 +0000 (13:08 +0100)
Add device tree property to define auxiliary devices to be added to
Audio Graph Card which is already supported on Simle Card.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://msgid.link/r/878qz4ry81.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card2.c

index 8eea81888758014fe2b59a3943b6e44bbc23e58b..be5a4ebfddd4163a9c2119bbd3e112bd4ff216e9 100644 (file)
@@ -1398,6 +1398,10 @@ int audio_graph2_parse_of(struct simple_util_priv *priv, struct device *dev,
 
        simple_util_debug_info(priv);
 
+       ret = snd_soc_of_parse_aux_devs(card, "aux-devs");
+       if (ret < 0)
+               goto err;
+
        ret = devm_snd_soc_register_card(dev, card);
 err:
        devm_kfree(dev, li);