linux-stable/sound/soc/sunxi
Clément Péron f7e27d6064 ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode
[ Upstream commit 93c0210671 ]

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: 7ae7834ec4 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:00 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile ASoC: sunxi: Add new driver for Allwinner A64 codec's analog path controls 2018-10-17 11:11:01 +01:00
sun4i-codec.c ASoC: various vendors: delete repeated words in comments 2020-08-18 14:52:32 +01:00
sun4i-i2s.c ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode 2020-12-30 11:53:00 +01:00
sun4i-spdif.c ASoC: sunxi: use asoc_substream_to_rtd() 2020-07-23 19:07:23 +01:00
sun8i-adda-pr-regmap.c ASoC: sun8i-codec-analog: split regmap code into separate driver 2018-10-17 11:10:59 +01:00
sun8i-adda-pr-regmap.h ASoC: sun8i-codec-analog: split regmap code into separate driver 2018-10-17 11:10:59 +01:00
sun8i-codec-analog.c ASoC: sun8i-codec-analog: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:09:02 +01:00
sun8i-codec.c ASoC: sun8i-codec: Use snd_soc_dai_get_drvdata 2020-10-05 14:16:21 +01:00
sun50i-codec-analog.c ASoC: sun50i-codec-analog: Enable DAPM for earpiece switch 2020-08-17 16:19:17 +01:00