ASoC: soc-pcm: DPCM cares BE channel constraint
authorJiada Wang <jiada_wang@mentor.com>
Wed, 20 Jun 2018 09:25:20 +0000 (18:25 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jun 2018 14:57:03 +0000 (15:57 +0100)
commitf4c277b817cc9489fffabffb4e15d2f3b686056c
tree97aab96d4ff6ec3a8b598dd47130d5685b23783c
parenta12f671b4241f53e7cd9dec8770d51549682453b
ASoC: soc-pcm: DPCM cares BE channel constraint

Current DPCM is caring only FE channel configuration. Sometimes
it will be trouble if user selects channel which isn't supported
by BE.

This patch adds new .dpcm_merged_chan on struct snd_soc_dai_link.
DPCM will use FE / BE merged channel if struct snd_soc_dai_link
has it.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-pcm.c