diff options
author | Mario Becroft <mb@gem.win.co.nz> | 2010-12-03 23:51:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-10 18:38:21 +0100 |
commit | 249c5156b8a743e3df5386c5cb7ae3df1d754e50 (patch) | |
tree | 2034f83b2f4a6b58b963d31bc2a58aa4f996246f /sound/soc/codecs/wm9081.c | |
parent | Merge branch 'for-2.6.37' into for-2.6.38 (diff) | |
download | linux-249c5156b8a743e3df5386c5cb7ae3df1d754e50.tar.xz linux-249c5156b8a743e3df5386c5cb7ae3df1d754e50.zip |
ASoC: Optimise WM9081 FLL performance
Tune the FLL gain for optimal performance according to evaluation
results.
Signed-off-by: Mario Becroft <mb@gem.win.co.nz>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm9081.c')
-rw-r--r-- | sound/soc/codecs/wm9081.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c index c7060775e88b..e5055b28c638 100644 --- a/sound/soc/codecs/wm9081.c +++ b/sound/soc/codecs/wm9081.c @@ -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); |