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:55:43 +0000 (09:55 +0200)
commit689aca72d29d76fef0d53cfa7816f1716ff17f06
tree50c7fe0c1a7d397fe260cf435489954d78bc554f
parentb9c6c4d8ff554d8241d546e12a120c075c58f440
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