diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-04-02 15:36:14 +0800 |
---|---|---|
committer | guoyin.chen <guoyin.chen@freescale.com> | 2015-05-08 17:25:02 +0800 |
commit | 3c5f22770b3b1a6a8335ad72ddffc29f48d9553d (patch) | |
tree | a04e17b5e3398a40defb1593ddb50e1aa9938b70 /sound | |
parent | 0a22aa22fe62b569d006d4d6d7318c20f39f4ec1 (diff) |
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 <zidan.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-wm8958.c | 5 |
1 files changed, 4 insertions, 1 deletions
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, |