ASoC: sun8i-codec: Require an exact BCLK divisor match
authorSamuel Holland <samuel@sholland.org>
Wed, 14 Oct 2020 06:19:37 +0000 (01:19 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 14:57:02 +0000 (14:57 +0000)
commit2464dccab7fef040bd6e85cd78ac33e2731925da
tree9aea44615310a67d431abe24aaf9d664bdc3b565
parent3952ec2ac55a5afcda84270fa203f17a6309af6b
ASoC: sun8i-codec: Require an exact BCLK divisor match

Now that we guarantee that SYSCLK is running at the optimal rate when
hw_params succeeds, and that it will continue running at that rate,
SYSCLK will always be an integer multiple of BCLK. So we can always
pick the exact divider, not just the closest divider.

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20201014061941.4306-14-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c