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:52:58 +0800
commit85c5c1eb91a25787f8cdefdb40bcd4735d37270e (patch)
tree4f5da06250cf1d28ee30b4d420b1eff3387db1f1 /sound
parent1fe3d0961814ad1fb1c1d691bfb85fc664caab05 (diff)
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. 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;
}