commit | 3b89db7468f70dc8dd548acd8568b7afbfeefe6d | [log] [tgz] |
---|---|---|
author | Marco Felsch <m.felsch@pengutronix.de> | Fri Apr 23 15:54:02 2021 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Jun 16 12:01:34 2021 +0200 |
tree | df80175fdb6f9f81fb35f2e92fd7d85dcc563a01 | |
parent | f70102cb369cde6ab7551ca58152d00fd3478fec [diff] |
ASoC: max98088: fix ni clock divider calculation [ Upstream commit 6c9762a78c325107dc37d20ee21002b841679209 ] 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 <m.felsch@pengutronix.de> Link: https://lore.kernel.org/r/20210423135402.32105-1-m.felsch@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>