]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun8i-codec: Don't hardcode BCLK / LRCK ratio
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 17 Oct 2018 07:38:06 +0000 (00:38 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 17 Oct 2018 10:10:58 +0000 (11:10 +0100)
commit6183ecc04a2169cc2fb7b07bdaa04b691d7c3324
treea0704b996781648f0c2ed9ff4cd1f5caf5f0b728
parent321c2d34aa6b0b41d31b9a9612778eebff9da0f9
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 <anarsoul@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun8i-codec.c