ASoC: Ensure we delay long enough for WM8994 FLL to lock when starting
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Jul 2011 00:24:46 +0000 (17:24 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Jul 2011 15:51:44 +0000 (08:51 -0700)
This delay is very conservative.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Cc: stable@kernel.org
sound/soc/codecs/wm8994.c

index 970a95c5360bfc271fd9a43c0a259bedd2d0d7a9..c2fc0356c2a44daac0c9a3fffd96e0119cd4ba3e 100644 (file)
@@ -1713,6 +1713,8 @@ static int _wm8994_set_fll(struct snd_soc_codec *codec, int id, int src,
                snd_soc_update_bits(codec, WM8994_FLL1_CONTROL_1 + reg_offset,
                                    WM8994_FLL1_ENA | WM8994_FLL1_FRAC,
                                    reg);
+
+               msleep(5);
        }
 
        wm8994->fll[id].in = freq_in;