aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8903.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-22 15:32:40 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-22 16:37:30 -0400
commit4dbfe8097157fde1f8054f48f991ea45833852cd (patch)
treee0a4e3c7e1b81febc5946b3b24f0235f9f45e13c /sound/soc/codecs/wm8903.c
parentc2aef4ffd24dab5c8e94c66e4042ad39d38bcf39 (diff)
ASoC: Optimise configuration of WM8903 DC servo
Modify the default startup sequence in the chip to set the DC servo dither level for optimal performance. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8903.c')
-rw-r--r--sound/soc/codecs/wm8903.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index 27c8b94c0551..de0a58507202 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -978,6 +978,11 @@ static int wm8903_set_bias_level(struct snd_soc_codec *codec,
978 wm8903_write(codec, WM8903_CLOCK_RATES_2, 978 wm8903_write(codec, WM8903_CLOCK_RATES_2,
979 WM8903_CLK_SYS_ENA); 979 WM8903_CLK_SYS_ENA);
980 980
981 /* Change DC servo dither level in startup sequence */
982 wm8903_write(codec, WM8903_WRITE_SEQUENCER_0, 0x11);
983 wm8903_write(codec, WM8903_WRITE_SEQUENCER_1, 0x1257);
984 wm8903_write(codec, WM8903_WRITE_SEQUENCER_2, 0x2);
985
981 wm8903_run_sequence(codec, 0); 986 wm8903_run_sequence(codec, 0);
982 wm8903_sync_reg_cache(codec, codec->reg_cache); 987 wm8903_sync_reg_cache(codec, codec->reg_cache);
983 988