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)
commit59f5cd96e9b9e1025ab0a9dc4ce9dd8633190794
tree42fef76fab13db0cd81a6fb03b1f5b2503b38372
parent13a9e21b80abf7956f8127304a07863ff2476828
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