diff options
| author | Samuel Holland <[email protected]> | 2020-10-14 01:19:29 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-10-26 14:56:55 +0000 |
| commit | e511aed79632e8a2dd03068f8bd11b64cb0d7170 (patch) | |
| tree | 3e63849af133475f5e96af7681f75dd8af553f6a /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 1abb43aeadfb513c0a16013cd445fb7dd3b285bb (diff) | |
ASoC: sun8i-codec: Round up the LRCK divisor
The codec supports only power-of-two BCLK/LRCK divisors. If either the
slot width or the number of slots is not a power of two, the LRCK
divisor must be rounded up to provide enough space. To do that, use
order_base_2 (instead of ilog2, which rounds down).
Since the rounded divisor is also needed for setting the SYSCLK/BCLK
divisor, return the order base 2 instead of fully calculating the
hardware register encoding.
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions