OSDN Git Service

ASoC: sun4i-i2s: Use the physical / slot width for the clocks
authorMaxime Ripard <maxime.ripard@bootlin.com>
Wed, 21 Aug 2019 13:06:53 +0000 (15:06 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 21 Aug 2019 13:15:44 +0000 (14:15 +0100)
commit5389f4765789e4ecf9831bc968562befdd2f3bee
treea83fc36c893a13c5c263c0ab5c8e0b39940470cb
parent137befe19f310400a8b20fd8a4ce8c4141aafde0
ASoC: sun4i-i2s: Use the physical / slot width for the clocks

The clock dividers function has been using the word size to compute the
clock rate at which it's supposed to be running, but the proper formula
would be to use the physical width and / or slot width in TDM.

It doesn't make any difference at the moment since all the formats
supported have the same sample width and physical width, but it's not going
to last forever.

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