ASoC: Optimise WM9081 FLL performance
authorMario Becroft <[email protected]>
Fri, 3 Dec 2010 22:51:34 +0000 (11:51 +1300)
committerMark Brown <[email protected]>
Fri, 10 Dec 2010 17:38:21 +0000 (17:38 +0000)
Tune the FLL gain for optimal performance according to evaluation
results.

Signed-off-by: Mario Becroft <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/wm9081.c

index c7060775e88bb282511a5400c96210f6b69ecad9..e5055b28c638d4091aeef7cd5d079ac3fba16ea7 100644 (file)
@@ -590,6 +590,10 @@ static int wm9081_set_fll(struct snd_soc_codec *codec, int fll_id,
        reg5 |= fll_div.fll_clk_ref_div << WM9081_FLL_CLK_REF_DIV_SHIFT;
        snd_soc_write(codec, WM9081_FLL_CONTROL_5, reg5);
 
+       /* Set gain to the recommended value */
+       snd_soc_update_bits(codec, WM9081_FLL_CONTROL_4,
+                           WM9081_FLL_GAIN_MASK, 0);
+
        /* Enable the FLL */
        snd_soc_write(codec, WM9081_FLL_CONTROL_1, reg1 | WM9081_FLL_ENA);