]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card-utils: setup dai_props cpu_dai/codec_dai at initial timing
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Sun, 11 Apr 2021 23:51:59 +0000 (08:51 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 13 Apr 2021 11:32:45 +0000 (12:32 +0100)
commit96b6640945b1796af359ff6216e51da03d8661cc
tree42fef76fab13db0cd81a6fb03b1f5b2503b38372
parentd75b1588202860642068e2153d8827bbcf51e342
ASoC: simple-card-utils: setup dai_props cpu_dai/codec_dai at initial timing

We couldn't setup dai_props cpu_dai/codec_dai at the initial timing,
because "counting DAIs loop" and "detecting DAIs loop" were different.
But we can do it now, because these are using same loops.

This patch setups dai_props cpu_dai/codec_dai at the initial timing.
It can removes triky code from simple-card / audio-graph.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87tuocwfa8.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c
sound/soc/generic/simple-card-utils.c
sound/soc/generic/simple-card.c