summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-03-26 04:26:20 +0100
committerMark Brown <broonie@kernel.org>2021-03-31 14:42:42 +0200
commite9cbcf23a28b41a310a13d0b1b67501948b255fb (patch)
tree1f01d68382ed690fb12e21d6068eac3ce73b2451 /mm
parentASoC: audio-graph: count DAI / link numbers as in order (diff)
downloadlinux-e9cbcf23a28b41a310a13d0b1b67501948b255fb.tar.xz
linux-e9cbcf23a28b41a310a13d0b1b67501948b255fb.zip
ASoC: audio-graph: cleanup graph_for_each_link()
audio-graph checks DT links 2 times. 1st is for counting DAIs / links to allocating memory, 2nd is for detecting DAIs. To detecting DAIs as CPU-dummy -> dummy-Codec order when DPCM case, it uses loops 2 times. Because of this kind of complex background, it needs to use local varuable for it, and each call-back functions need to care about it. Now, 1st and 2nd DT link check are using same order, thus we can share same code. This patch do it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/878s6a1tpf.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions