ASoC: audio-graph-card: add link_info
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:45:59 +0000 (10:45 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:23 +0000 (16:34 +0000)
commit1e4771a62fd7a6bab058529c450d3d87a8bd5b1a
tree4b634ae8e68c8202a1f30f507c90c8d13ca613b1
parentde2949fe262197298036989924d05f5de6b9815a
ASoC: audio-graph-card: add link_info

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.

To preparing cleanup code, this patch adds link_info which handles
number of DAIs/Links/Codec Conf, and CPU/Codec turn.

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