ASoC: audio-graph-card: use cpu/codec pointer on graph_dai_props
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 30 Nov 2018 02:07:48 +0000 (02:07 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 4 Dec 2018 16:29:34 +0000 (16:29 +0000)
commit0e3460bceedc98176684602a34659d51cd8bd4ce
tree078b9564dd1109a9520e627da954cad268359bc1
parent7c2ae7981d73f9e4f10ed9d1dcb5bc6056189b30
ASoC: audio-graph-card: use cpu/codec pointer on graph_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 audio-graph-card and audio-graph-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 audio-graph-card.
It is same logic with audio-graph-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/audio-graph-card.c