]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: sun4i-i2s: Use the actual format width instead of an hardcoded one
authorMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 21 Aug 2019 13:06:54 +0000 (15:06 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 21 Aug 2019 13:16:02 +0000 (14:16 +0100)
commit9e8a93ac27d101e0ace024196a4bc3386568cc00
tree951e024bc7966cc17d88e97b251ac7bd408b90fc
parent5389f4765789e4ecf9831bc968562befdd2f3bee
ASoC: sun4i-i2s: Use the actual format width instead of an hardcoded one

The LRCK period field in the FMT0 register holds the number of LRCK period
for one channel in I2S mode.

This has been hardcoded to 32, while it really should be the physical width
of the format, which creates an improper clock when using a 16bit format,
with the i2s controller as LRCK master.

Fixes: 7d2993811a1e ("ASoC: sun4i-i2s: Add support for H3")
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://lore.kernel.org/r/f08a0c3605cd1d79752b38d704690190183f7865.1566392800.git-series.maxime.ripard@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun4i-i2s.c