diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2018-02-28 14:59:12 +0200 |
---|---|---|
committer | Dong Aisheng <aisheng.dong@nxp.com> | 2019-11-25 15:50:35 +0800 |
commit | c04acda5e45e74d306919d9b5dc04da7eed65ab2 (patch) | |
tree | 753d3b06f63efec947f05de7b5564136c2165ae6 /sound/soc/fsl/imx-ak5558.c | |
parent | 4c76f8ab0034744d6ea125d37f927fec427e2c21 (diff) |
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 <viorel.suman@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/imx-ak5558.c')
-rw-r--r-- | sound/soc/fsl/imx-ak5558.c | 4 |
1 files changed, 2 insertions, 2 deletions
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[] = { |