From: Kuninori Morimoto Date: Mon, 17 Jun 2024 04:26:38 +0000 (+0000) Subject: ASoC: audio-graph-card2: add support for aux devices X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=195815c2755d70df92f46e6d737cd677db7adeef;p=users%2Fdwmw2%2Flinux.git ASoC: audio-graph-card2: add support for aux devices 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 Link: https://msgid.link/r/878qz4ry81.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/generic/audio-graph-card2.c b/sound/soc/generic/audio-graph-card2.c index 8eea818887580..be5a4ebfddd41 100644 --- a/sound/soc/generic/audio-graph-card2.c +++ b/sound/soc/generic/audio-graph-card2.c @@ -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);