]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2bb8b9da74e72c0f94c6ef601a857f31f48ca846
tree97aab96d4ff6ec3a8b598dd47130d5685b23783c
parent454cd515e4dfea20a9a6216e8fa209ab776b95c2
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