]> Git Repo - linux.git/commit - sound/soc/sunxi/sun8i-codec.c
ASoC: sun8i-codec: Don't hardcode BCLK / LRCK ratio
authorVasily Khoruzhick <[email protected]>
Wed, 17 Oct 2018 07:38:06 +0000 (00:38 -0700)
committerMark Brown <[email protected]>
Wed, 17 Oct 2018 10:10:58 +0000 (11:10 +0100)
commit13c3bf174becfb8b55adcfeb6f01724dc99347f0
treea0704b996781648f0c2ed9ff4cd1f5caf5f0b728
parent66ecce3325383c8304063e7d5a30f4374ef5a33e
ASoC: sun8i-codec: Don't hardcode BCLK / LRCK ratio

BCLK / LRCK ratio should be sample size * channels, but it was
hardcoded to 32 (0x1 is 32 as per A33 and A64 datasheets).

Calculate it basing on sample size and number of channels.

Signed-off-by: Vasily Khoruzhick <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sunxi/sun8i-codec.c
This page took 0.053175 seconds and 4 git commands to generate.