diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-04-02 15:36:14 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2015-05-08 16:33:58 +0800 |
commit | 45f0bc8b21b79e779b47ab4e4a94de8bafb00a51 (patch) | |
tree | aebc8a7b3dd52eeebdfeb6ce85fa4420e8c06c38 /sound | |
parent | c25e4f9a93f97a6fcfab373b0fcbb71e4010437b (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, |