ASoC: cs42l42: Don't allow SND_SOC_DAIFMT_LEFT_J
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 29 Jul 2021 17:09:28 +0000 (18:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 06:56:57 +0000 (08:56 +0200)
commit6a3381336398b68d3a3954a3fafa307cb5e83129
tree0dfa0382016f3c65c78c7ac3f8c1174ebfbd3d39
parent55e86f07b85edb6cba1cb6d9722bf72201b2e4cb
ASoC: cs42l42: Don't allow SND_SOC_DAIFMT_LEFT_J

[ Upstream commit 64324bac750b84ca54711fb7d332132fcdb87293 ]

The driver has no support for left-justified protocol so it should
not have been allowing this to be passed to cs42l42_set_dai_fmt().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 2c394ca79604 ("ASoC: Add support for CS42L42 codec")
Link: https://lore.kernel.org/r/20210729170929.6589-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/cs42l42.c