[alsa-devel] [PATCH] ASoC: Ensure we delay long enough for WM8994 FLL to lock when starting

Liam Girdwood lrg at ti.com
Mon Jul 4 11:44:44 CEST 2011


On 02/07/11 01:35, Mark Brown wrote:
> This delay is very conservative.
> 
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  sound/soc/codecs/wm8994.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
> index 38abdff..2eb4594 100644
> --- a/sound/soc/codecs/wm8994.c
> +++ b/sound/soc/codecs/wm8994.c
> @@ -1725,6 +1725,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;

Acked-by: Liam Girdwood <lrg at ti.com>


More information about the Alsa-devel mailing list