summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-wm8962.c
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-08-13 11:37:54 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:49:55 +0800
commit2b55dd085e0b6aa8c4e4bd6fcbae868b6d9ce2fa (patch)
tree9915fc939ceb8c9a346468f2f2eb75ad889ae9a1 /sound/soc/fsl/imx-wm8962.c
parentf206144f3a270f7e60f98f88315667de8e5dad04 (diff)
MLK-11479-04 ASoC: imx-wm8962: Set MCLK source clock to 0Hz in hw_free()
cherry-pick below patch from v3.14.y: ENGR00274386-2 ASoC: imx-wm8962: Set MCLK source clock to 0Hz in hw_free() When DAPM closed WM8962 after playback, its driver would prompt 'wm8962 0-001a: Unsupported sysclk ratio 500' due to the invalid divisor calculated by WM8962 codec driver. To fix it, we can work around by setting its MCLK source to 0Hz, so the codec driver would never get an invalid divisor any more. Since hw_params() would re-set the MCLK source, no need to worry about any side-effect. Acked-by: Wang Shengjiu <b02247@freescale.com> Signed-off-by: Nicolin Chen <b42378@freescale.com> (cherry picked from commit a935f7680ac3958ce72cf7413cac278c0683d4c0)
Diffstat (limited to 'sound/soc/fsl/imx-wm8962.c')
-rw-r--r--sound/soc/fsl/imx-wm8962.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-wm8962.c b/sound/soc/fsl/imx-wm8962.c
index 30dd37604ff2..aad4974fcaaf 100644
--- a/sound/soc/fsl/imx-wm8962.c
+++ b/sound/soc/fsl/imx-wm8962.c
@@ -129,7 +129,7 @@ static int imx_hifi_hw_free(struct snd_pcm_substream *substream)
* So we set MCLK as sysclk once, which'd remove the limitation.
*/
ret = snd_soc_dai_set_sysclk(codec_dai, WM8962_SYSCLK_MCLK,
- data->clk_frequency, SND_SOC_CLOCK_IN);
+ 0, SND_SOC_CLOCK_IN);
if (ret < 0) {
dev_err(dev, "failed to switch away from FLL: %d\n", ret);
return ret;