5 Oct
2020
5 Oct
'20
1:34 p.m.
On Wed, Sep 30, 2020 at 09:11:37PM -0500, Samuel Holland wrote:
Previously, the BCLK divisor calculation assumed a power-of-two slot width 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.
Signed-off-by: Samuel Holland samuel@sholland.org
Acked-by: Maxime Ripard mripard@kernel.org
Maxime