Skip to contentSkip to conversation

ASoC: Optimise WM9081 FLL performance

PATCH In review Mark Brown 2 participants 2 messages Dec 9, 2010 – Dec 10, 2010

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Optimise WM9081 FLL performance

From: Mario Becroft <[email protected]>

Tune the FLL gain for optimal performance according to evaluation results.

---
 sound/soc/codecs/wm9081.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
sound/soc/codecs/wm9081.c +4 -0
index c706077..e5055b2 100644
@@ -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);
 
Signature · 1 line
1.7.1