ASoC: simple-card: cleanup DAI link loop method - step1
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:47:23 +0000 (10:47 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:30 +0000 (16:34 +0000)
commitd947cdfd4be29c48c6c529c2b5ce7b1988387c67
treebcfd44726edc95b58becb13908f339f212b81245
parent17029e494edc68337c9b99665e8f9b478f1d4ec5
ASoC: simple-card: cleanup DAI link loop method - step1

Current simple-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/simple-card.c