Skip to content
Unverified Commit 18562fc3 authored by Chris Morgan's avatar Chris Morgan Committed by Mark Brown
Browse files

ASoC: es8328: Use rounded rate for es8328_set_sysclk()



I have a board (RK3588 based) that sets the sysclk to 12287999. The
es8328 driver fails to match this to the 12288000 rate and fails to
load. Allow the rate comparison to work if the frequency is within
100hz by dividing it by 100 and rounding it, then multiplying it back
by 100.

Note the 100hz value was chosen arbitrarily by me, but it has only
been tested with a 1hz difference.

Signed-off-by: default avatarChris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20231020171539.65513-1-macroalpha82@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f1c40686
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment