OSDN Git Service

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:56:40 +0000 (09:56 +0200)
commit5b3f570661f493f7e4a055ee3b50337b3eb07781
treec67f20f1ff204df3c8823bbf1b67e9f973178490
parent05d6e618f64b877f6db17173f31063d51d023b81
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