summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2020-10-14 01:19:30 -0500
committerMark Brown <broonie@kernel.org>2020-10-26 14:56:56 +0000
commit68a4f2caaa17ce62890c51ef957dd008c2e42aae (patch)
tree894a8f1b380cbc28b90ff057f5c83b21bfd781cf /tools/perf/scripts/python
parente511aed79632e8a2dd03068f8bd11b64cb0d7170 (diff)
downloadlinux-68a4f2caaa17ce62890c51ef957dd008c2e42aae.tar.gz
linux-68a4f2caaa17ce62890c51ef957dd008c2e42aae.zip
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