Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: arizona: Fix bclk for sample rates that are multiple of 4kHz

For a sample rate of 12kHz the bclk was taken from the 44.1kHz table as
we test for a multiple of 8kHz. This patch fixes this issue by testing
for multiples of 4kHz instead.

Signed-off-by: Nikesh Oswal <Nikesh.Oswal@cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org

authored by

Nikesh Oswal and committed by
Mark Brown
e73694d8 8005c49d

+1 -1
+1 -1
sound/soc/codecs/arizona.c
··· 1543 1543 bool reconfig; 1544 1544 unsigned int aif_tx_state, aif_rx_state; 1545 1545 1546 - if (params_rate(params) % 8000) 1546 + if (params_rate(params) % 4000) 1547 1547 rates = &arizona_44k1_bclk_rates[0]; 1548 1548 else 1549 1549 rates = &arizona_48k_bclk_rates[0];