ASoC: simple-card: cleanup DAI link loop method - step2
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:47:28 +0000 (10:47 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:31 +0000 (16:34 +0000)
commitc39291a76444e3177f7a89d603eae7f83fbdb9f9
tree1ec994818e8f6fd8f79bfc0619a94fa899bc9866
parentd947cdfd4be29c48c6c529c2b5ce7b1988387c67
ASoC: simple-card: cleanup DAI link loop method - step2

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 cleanups the code by using asoc_simple_card_for_each_link()
which judges normal link / DPCM link.

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