ASoC: simple-card: use cpu/codec pointer on simple_dai_props
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 4 Dec 2018 08:19:43 +0000 (08:19 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 11 Dec 2018 01:10:39 +0000 (01:10 +0000)
commit4fb7f4df49d37a9a769b6e8ba517e453903142cc
tree35343e47e2d9ea5008527d84264a0f2577ba931c
parent2b320e046495e6cf02d1f0b1abf07042ac5635ea
ASoC: simple-card: use cpu/codec pointer on simple_dai_props

In  DPCM case, it uses CPU-dummy / dummy-Codec dai links, and
non DPCM case, it uses CPU-Codec dai links.

Now, we want to merge simple-card and simple-scu-card.

These sound cards are using silimar but not same logic on each functions.
Then, of course we want to share same logic.
To compromise, this patch uses cpu/codec pointer on simple-card.
It is same logic with simple-scu-card, thus easy merging.
This is prepare for merging audio card

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