]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: simple-card: add link_info
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 20 Dec 2018 01:46:53 +0000 (10:46 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 3 Jan 2019 16:34:29 +0000 (16:34 +0000)
commit17029e494edc68337c9b99665e8f9b478f1d4ec5
tree206f892909acaebfabaebee85bb8a0ee14666407
parent7adee60ee2732f23f703ff83ee35caad561490ba
ASoC: simple-card: add link_info

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.

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