ASoC: rsnd: setup clock-out only when all conditions are right
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 22 Aug 2023 23:50:36 +0000 (23:50 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2023 12:53:26 +0000 (13:53 +0100)
commitd059cd40aea6deae716bc6588f24e7b6b421f822
tree7113c1f1dc8ca7b885449d58b1b870e5c6dd1722
parentbd4cee2fdf69b56c2bf3e7ec7c2e12b81e08005c
ASoC: rsnd: setup clock-out only when all conditions are right

Current adg.c doesn't assume that requested clock out divide condition
doesn't match. In such case, it will indicate strange message, and will
register NULL clock, etc. It is just a DT setting miss, but is
confusable. This patch check all conditions for it.

Reported-by: Vincenzo De Michele <vincenzo.michele@davinci.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87lee2zlf7.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c