]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode
authorClément Péron <peron.clem@gmail.com>
Fri, 30 Oct 2020 14:46:34 +0000 (15:46 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Oct 2020 17:58:50 +0000 (17:58 +0000)
commitaf9cd35ac87609332ff7f12226947000a5655c67
tree5d6e6cf6ec4aa4674bbe04ca398f60084def79ae
parentc33e421cac20e5b1e8e6a1accbabda4758b1170c
ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

Left and Right justified mode are computed using the same formula
as DSP_A and DSP_B mode.
Which is wrong and the user manual explicitly says:

LRCK_PERDIOD:
PCM Mode: Number of BCLKs within (Left + Right) channel width.
I2S/Left-Justified/Right-Justified Mode: Number of BCLKs within each
individual channel width(Left or Right)

Fix this by using the same formula as the I2S mode.

Fixes: 3cf5b0f45a36 ("ASoC: sun4i-i2s: Add support for DSP formats")
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20201030144648.397824-2-peron.clem@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c