summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNicolin Chen <b42378@freescale.com>2013-04-02 13:39:25 +0800
committerNicolin Chen <b42378@freescale.com>2013-04-02 20:59:41 +0800
commit80dd80156772ff155aaf5420e41346674a9521f0 (patch)
treebef41026ccb3169f22ace4dc405cae69f2d2e25f /sound
parente2bd4d2117e1c78cfd487fb10848f3361b358057 (diff)
downloadlinux-80dd80156772ff155aaf5420e41346674a9521f0.tar.gz
ENGR00256310 ASoC: imx-wm8962: Fix playback abnormally slower issue
Previously, we didn't close FLL after playback/capture, which might cause FLL work werid after a long time suspend. This patch manually disables FLL after playback/capture. Acked-by: Wang Shengjiu <b02247@freescale.com> Signed-off-by: Nicolin Chen <b42378@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/imx/imx-wm8962.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/imx/imx-wm8962.c b/sound/soc/imx/imx-wm8962.c
index 8cf4bdd577de..c99144f2b325 100644
--- a/sound/soc/imx/imx-wm8962.c
+++ b/sound/soc/imx/imx-wm8962.c
@@ -214,6 +214,14 @@ static int imx_hifi_hw_free(struct snd_pcm_substream *substream)
pr_err("Failed to set MUTE: %d\n", ret);
return ret;
}
+
+ /* Disable FLL */
+ ret = snd_soc_dai_set_pll(codec_dai, WM8962_FLL,
+ WM8962_FLL_MCLK, 0, 0);
+ if (ret < 0) {
+ pr_err("Failed to set FLL: %d\n", ret);
+ return ret;
+ }
}
return 0;
}