ASoC: audio-graph-card: cleanup DAI link loop method - step1
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:46:05 +0000 (10:46 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:24 +0000 (16:34 +0000)
commitdd98fbc558a035728beed08a16c443f9fd37eb2b
tree586f6bbb14742a451473d5d31d7b7c27b517bbdd
parent1e4771a62fd7a6bab058529c450d3d87a8bd5b1a
ASoC: audio-graph-card: cleanup DAI link loop method - step1

Current audio-graph-card is parsing DAI link for both "normal sound" and
"DPCM sound". On this driver, it needs to count and parse
DAIs/Links/Codec Conf from each links.
Then, counting/parsing link loop are very similar, but using different
implementation. Because of this background, the link loop code is very
mysterious. Mystery code will be trouble in the future.

This patch adds/modifies counting and parsing function for
"normal sound" and "DPCM sound", and call it from link loop.
This is prepare for cleanup DAI link loop method.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c