]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:54:33 +0000 (09:54 +0200)
commitc930b3bca642c9dbc8a6077ebc82d9bbe96cc79f
tree9a79b9fbbc470bafa9b9f94f5d4e7b5b05c7211b
parent3421d820391ccb621522fafda575aa506832bc1c
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