ASoC: tlv320aic32x4: Fix bdiv clock rate derivation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 11 Sep 2020 17:31:39 +0000 (19:31 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 21 Sep 2020 21:08:35 +0000 (22:08 +0100)
commit40b37136287ba6b34aa2f1f6123f3d6d205dc2f0
treeccb45108a49526a374d6125ddf8516a5cb719a26
parent5b4458ebb4c8007dae7eaeb88cb52b2bb4879894
ASoC: tlv320aic32x4: Fix bdiv clock rate derivation

Current code expects a single channel to be always used. Fix this
situation by forwarding the number of channels used. Then fix the
derivation of the bdiv clock rate.

Fixes: 96c3bb00239d ("ASoC: tlv320aic32x4: Dynamically Determine Clocking")
Suggested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20200911173140.29984-3-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c