ASoC: max98090: remove 24-bit format support if RJ is 0
authorYu-Hsuan Hsu <yuhsuan@chromium.org>
Tue, 4 Jun 2019 10:49:09 +0000 (18:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:53:35 +0000 (09:53 +0200)
commit7b7486398a327297f6804d13614ef863d0bc2ca2
treed4048c7854bd5c3e18e596ec5833b00925155331
parent3b60f98ef4962d5a0d94848a790fb4483d1bd4bb
ASoC: max98090: remove 24-bit format support if RJ is 0

[ Upstream commit 5628c8979642a076f91ee86c3bae5ad251639af0 ]

The supported formats are S16_LE and S24_LE now. However, by datasheet
of max98090, S24_LE is only supported when it is in the right justified
mode. We should remove 24-bit format if it is not in that mode to avoid
triggering error.

Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/max98090.c