From c04acda5e45e74d306919d9b5dc04da7eed65ab2 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Wed, 28 Feb 2018 14:59:12 +0200 Subject: MLK-15071: ASoC: fsl: imx-ak5558: Fix clk for 384KHz and 786KHz With the current multipliers SAI isn't able to derive a correct bitclk. e.g: When recording at 786Khz with current multiplier MCLK = 24576000, requested freq 24576000 but SAI wants: MCLK = (DIV + 1) * 2 * freq [SAI TCR2], so an acceptable solution is to add a 2x factor to mclk. Reviewed-by: Viorel Suman Signed-off-by: Daniel Baluta --- sound/soc/fsl/imx-ak5558.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sound/soc/fsl/imx-ak5558.c') diff --git a/sound/soc/fsl/imx-ak5558.c b/sound/soc/fsl/imx-ak5558.c index eb6f505df88b..36b31f5357c9 100644 --- a/sound/soc/fsl/imx-ak5558.c +++ b/sound/soc/fsl/imx-ak5558.c @@ -53,8 +53,8 @@ static const struct imx_ak5558_fs_mul fs_mul[] = { { .min = 48000, .max = 48000, .mul = 512 }, { .min = 96000, .max = 96000, .mul = 256 }, { .min = 192000, .max = 192000, .mul = 128 }, - { .min = 384000, .max = 384000, .mul = 64 }, - { .min = 768000, .max = 768000, .mul = 32 }, + { .min = 384000, .max = 384000, .mul = 2 * 64 }, + { .min = 768000, .max = 768000, .mul = 2 * 32 }, }; static struct snd_soc_dapm_widget imx_ak5558_dapm_widgets[] = { -- cgit v1.2.3