]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00256310 ASoC: imx-wm8962: Fix playback abnormally slower issue
authorNicolin Chen <b42378@freescale.com>
Tue, 2 Apr 2013 05:39:25 +0000 (13:39 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:36:00 +0000 (08:36 +0200)
  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>
sound/soc/imx/imx-wm8962.c

index 8cf4bdd577de18c0b413a90fe31778c25d19f760..c99144f2b32580b52dbdeeb59acadfbd93bc7f2a 100644 (file)
@@ -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;
 }