diff options
| author | 2020-10-14 01:19:30 -0500 | |
|---|---|---|
| committer | 2020-10-26 14:56:56 +0000 | |
| commit | 68a4f2caaa17ce62890c51ef957dd008c2e42aae (patch) | |
| tree | 894a8f1b380cbc28b90ff057f5c83b21bfd781cf /tools/perf/scripts/python | |
| parent | ASoC: sun8i-codec: Round up the LRCK divisor (diff) | |
ASoC: sun8i-codec: Correct the BCLK divisor calculation
Previously, the BCLK divisor calculation assumed zero padding and
exactly two slots. In order to support the TDM slot binding and
20/24-bit word sizes, those assumptions must be removed.
Due to hardware limitations, the BCLK/LRCK ratio is not as simple as
"slot_width * slots". However, the correct value is already calculated
elsewhere in this function, since it must also be programmed into the
hardware. Reuse that value to calculate the correct SYSCLK/BCLK divisor.
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20201014061941.4306-7-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
