diff options
| author | Marco Felsch <[email protected]> | 2021-04-23 13:54:02 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-04-26 12:44:46 +0000 |
| commit | 6c9762a78c325107dc37d20ee21002b841679209 (patch) | |
| tree | d11ba8acb0ebddb8c72f4ad6f47247210127aba4 /tools/testing/selftests/bpf/prog_tests/stacktrace_map.c | |
| parent | ASoC: simple-card: Fix breakage on kontron-sl28-var3-ads2 (diff) | |
| download | kernel-6c9762a78c325107dc37d20ee21002b841679209.tar.gz kernel-6c9762a78c325107dc37d20ee21002b841679209.zip | |
ASoC: max98088: fix ni clock divider calculation
The ni1/ni2 ratio formula [1] uses the pclk which is the prescaled mclk.
The max98088 datasheet [2] has no such formula but table-12 equals so
we can assume that it is the same for both devices.
While on it make use of DIV_ROUND_CLOSEST_ULL().
[1] https://datasheets.maximintegrated.com/en/ds/MAX98089.pdf; page 86
[2] https://datasheets.maximintegrated.com/en/ds/MAX98088.pdf; page 82
Signed-off-by: Marco Felsch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/stacktrace_map.c')
0 files changed, 0 insertions, 0 deletions
