Skip to content

Commit ce6949b

Browse files
morimotobroonie
authored andcommitted
ASoC: renesas: rsnd: allow to use ADG as standalone
Audio clock generator (= ADG) can be used standalone (without DAI), but current driver indicates error if it doesn't have DAI on DT. It is not error, allow to use ADG as standalone. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87v7r22x0a.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7490273 commit ce6949b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

sound/soc/renesas/rcar/core.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,8 +1482,13 @@ static int rsnd_dai_probe(struct rsnd_priv *priv)
14821482
int dai_i;
14831483

14841484
nr = rsnd_dai_of_node(priv, &is_graph);
1485+
1486+
/*
1487+
* There is a case that it is used only for ADG (Sound Clock).
1488+
* No DAI is not error
1489+
*/
14851490
if (!nr)
1486-
return -EINVAL;
1491+
return 0;
14871492

14881493
rdrv = devm_kcalloc(dev, nr, sizeof(*rdrv), GFP_KERNEL);
14891494
rdai = devm_kcalloc(dev, nr, sizeof(*rdai), GFP_KERNEL);

0 commit comments

Comments
 (0)