MLK-15043-1: ASoC: soc-pcm: add dpcm_merged_chan in snd_soc_dai_link
authorShengjiu Wang <shengjiu.wang@freescale.com>
Wed, 14 Jun 2017 09:35:20 +0000 (17:35 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:15 +0000 (15:28 -0500)
commit1ddcb58600ad346d6cbafec25da236af55143d4b
tree0ee41c18e98cccf98042566c689c6257d7ca47d8
parenta2c6eac74b615f01af3d8d22fcc856d9178c8d74
MLK-15043-1: ASoC: soc-pcm: add dpcm_merged_chan in snd_soc_dai_link

According to commit b073ed4e2126 ("ASoC: soc-pcm: DPCM cares BE format"),
Current DPCM only care FE channel, but it will set unsupported channel to
drivers.
So add dpcm_merged_chan, which is used to merge the BE's codec
channels configuration to FE if it exist in snd_soc_dai_link. And
dpcm_runtime_base_chan function is to get the channel configuration of BE,
which likes the dpcm_runtime_base_format function.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 19ff1095d4b68d17a5f68a2de5654be72b606809)
include/sound/soc.h
sound/soc/soc-pcm.c