OSDN Git Service

ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint
authorYu-Hsuan Hsu <yuhsuan@chromium.org>
Mon, 23 Sep 2019 16:29:40 +0000 (00:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:36:00 +0000 (16:36 +0100)
commit370f7e11c2d7ce76829c9bbe63b49c09b4a1d206
treedbb8823509ab2bd67435f5ca9d0a24d6253873d7
parente6e50631793e5b85c2761a24cb4563c500b733ec
ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint

[ Upstream commit e2db787bdcb4f2722ecf410168f0583764634e45 ]

On KBL platform, the microphone is attached to external codec(rt5514)
instead of PCH. However, TDM slot between PCH and codec is 16 bits only.
In order to avoid setting wrong format, we should add a constraint to
force to use 16 bits format forever.

Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190923162940.199580-1-yuhsuan@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c