diff options
author | Chris Morgan <macromorgan@hotmail.com> | 2023-10-20 12:15:39 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-23 13:29:52 +0100 |
commit | 18562fc36c21d572582049e6259c43bf1a01f3e0 (patch) | |
tree | 67bcb09ee650ff5c6446e6da569ed42ef9ab3580 /lib/crypto/mpi/mpiutil.c | |
parent | f1c406866af5dacdd9601cfa3be4873ebd801b86 (diff) |
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: Chris Morgan <macromorgan@hotmail.com>
Link: https://lore.kernel.org/r/20231020171539.65513-1-macroalpha82@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions