diff options
author | Nicolin Chen <b42378@freescale.com> | 2013-04-08 21:12:07 +0800 |
---|---|---|
committer | Nicolin Chen <b42378@freescale.com> | 2013-04-10 14:30:13 +0800 |
commit | 25b43b8b4163a48612d2d1d5684eedc33bc96b7e (patch) | |
tree | 515f01101400e60fff41c4f028dc65a3251b1beb | |
parent | 0166fa6a636162218815ecf0921908400bb40da5 (diff) |
ENGR00257755-4 ASoC: WM8962: Disable FLL when chip's not being used
There might be a case that SYSCLK_SRC is not FLL, but FLL's still open.
If so, next time we use FLL as SYSCLK_SRC, it won't work normally.
This patch disabled FLL if FLL's enabled no matter what SYSCLK_SRC is.
Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
-rw-r--r-- | sound/soc/codecs/wm8962.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 9acae3004c72..b370349c0a8f 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -2379,9 +2379,9 @@ static int sysclk_event(struct snd_soc_dapm_widget *w, break; case SND_SOC_DAPM_POST_PMD: - if (fll) - snd_soc_update_bits(codec, WM8962_FLL_CONTROL_1, - WM8962_FLL_ENA, 0); + /* After Power-down, close FLL if FLL-enabled */ + snd_soc_update_bits(codec, WM8962_FLL_CONTROL_1, + WM8962_FLL_ENA, 0); break; default: |