ASoC: rsrc-card: tidyup dai format for DPCM
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 17 Dec 2015 02:49:43 +0000 (02:49 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 17 Dec 2015 12:14:31 +0000 (12:14 +0000)
commitaf998f853124231ef3bff05621f157a19af05d20
treeb27e50a438d77ad185ba7e4b3c02fc5bdcb11c31
parentae638b725ee00afe3253e30df617a5531ea30ea2
ASoC: rsrc-card: tidyup dai format for DPCM

rsrc-card is DPCM supported version of simple-card. Thus it has similar
DT format. OTOH, snd_soc_dai_link requests cpu/codec, but one of them
will be snd-soc-dummy in DPCM case, and DPCM requests frontend/backend
dai_link. This means it might have multi backend/codec.
And, SND_SOC_DAIFMT_xxx is based on "codec". Because of these
difference, current rsrc card can't detect correct dai_fmt.
This patch detect correct dai fmt from 1st "codec".

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