]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ENGR00256933 ASoC: WM8962: Add delay after FLL-enable
authorNicolin Chen <b42378@freescale.com>
Tue, 2 Apr 2013 07:27:01 +0000 (15:27 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:36:00 +0000 (08:36 +0200)
  There's a start-up time after FLL_ENA bit is set. While the driver didn't
run the delay code which already exists in the set_fll() function.
  This patch let the driver run into the delay section, and made it work more
perfectly.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
sound/soc/codecs/wm8962.c

index 969479c09aec4696dedb2eb3027fdcfe849e8493..3ec5cc7e06c42dfde932c31b784009d07a907df7 100644 (file)
@@ -3430,6 +3430,8 @@ static int wm8962_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
                            WM8962_FLL_FRAC | WM8962_FLL_REFCLK_SRC_MASK |
                            WM8962_FLL_ENA, fll1 | WM8962_FLL_ENA);
 
+       fll1 |= WM8962_FLL_ENA;
+
        dev_dbg(codec->dev, "FLL configured for %dHz->%dHz\n", Fref, Fout);
 
        ret = 0;