From 45f0bc8b21b79e779b47ab4e4a94de8bafb00a51 Mon Sep 17 00:00:00 2001 From: Zidan Wang Date: Thu, 2 Apr 2015 15:36:14 +0800 Subject: MLK-10555 ASoC: imx-wm8958: change AIF1CLK to 384fs to get accurate sample rate for 24 bit word length change AIF1CLK to 384fs to get accurate sample rate for 24 bit word length. Signed-off-by: Zidan Wang --- sound/soc/fsl/imx-wm8958.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-wm8958.c b/sound/soc/fsl/imx-wm8958.c index fb0399c55159..49ce823cc9bc 100644 --- a/sound/soc/fsl/imx-wm8958.c +++ b/sound/soc/fsl/imx-wm8958.c @@ -163,7 +163,10 @@ static int imx_hifi_hw_params(struct snd_pcm_substream *substream, } else { data->sr_stream[tx] = params_rate(params); - pll_out = data->sr_stream[tx] * 256; + if (params_width(params) == 24) + pll_out = data->sr_stream[tx] * 384; + else + pll_out = data->sr_stream[tx] * 256; ret = snd_soc_dai_set_pll(codec_dai, WM8994_FLL1, WM8994_FLL_SRC_MCLK1, -- cgit v1.2.3