]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a74a41faced8f407d7501d950b99ace684319e9
treea83fc36c893a13c5c263c0ab5c8e0b39940470cb
parent9c11a6196a51960d97959bf89a6b1cfdf9b1e954
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: 56bb0388a32c ("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