diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-30 09:56:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-02 08:03:53 -0500 |
commit | 8bc3c2c207dc82d47ffc6ef7b788e04ea637d3f1 (patch) | |
tree | 957b761d321508b88408441f3d4723f3b7010011 /sound/soc/codecs/wm8994.c | |
parent | dd31b310b9104327fb6bf7d2fe3b0f0f6fde4dd7 (diff) |
ASoC: Tune performance of WM8958 revision A
Update some of the default configuration for the device to improve
the performance.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 59d361145b15..af3a98ae0579 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -1858,15 +1858,33 @@ static int wm8994_set_bias_level(struct snd_soc_codec *codec, | |||
1858 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { | 1858 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { |
1859 | pm_runtime_get_sync(codec->dev); | 1859 | pm_runtime_get_sync(codec->dev); |
1860 | 1860 | ||
1861 | /* Tweak DC servo and DSP configuration for | 1861 | switch (control->type) { |
1862 | * improved performance. */ | 1862 | case WM8994: |
1863 | if (control->type == WM8994 && wm8994->revision < 4) { | 1863 | if (wm8994->revision < 4) { |
1864 | /* Tweak DC servo and DSP configuration for | 1864 | /* Tweak DC servo and DSP |
1865 | * improved performance. */ | 1865 | * configuration for improved |
1866 | snd_soc_write(codec, 0x102, 0x3); | 1866 | * performance. */ |
1867 | snd_soc_write(codec, 0x56, 0x3); | 1867 | snd_soc_write(codec, 0x102, 0x3); |
1868 | snd_soc_write(codec, 0x817, 0); | 1868 | snd_soc_write(codec, 0x56, 0x3); |
1869 | snd_soc_write(codec, 0x102, 0); | 1869 | snd_soc_write(codec, 0x817, 0); |
1870 | snd_soc_write(codec, 0x102, 0); | ||
1871 | } | ||
1872 | break; | ||
1873 | |||
1874 | case WM8958: | ||
1875 | if (wm8994->revision == 0) { | ||
1876 | /* Optimise performance for rev A */ | ||
1877 | snd_soc_write(codec, 0x102, 0x3); | ||
1878 | snd_soc_write(codec, 0xcb, 0x81); | ||
1879 | snd_soc_write(codec, 0x817, 0); | ||
1880 | snd_soc_write(codec, 0x102, 0); | ||
1881 | |||
1882 | snd_soc_update_bits(codec, | ||
1883 | WM8958_CHARGE_PUMP_2, | ||
1884 | WM8958_CP_DISCH, | ||
1885 | WM8958_CP_DISCH); | ||
1886 | } | ||
1887 | break; | ||
1870 | } | 1888 | } |
1871 | 1889 | ||
1872 | /* Discharge LINEOUT1 & 2 */ | 1890 | /* Discharge LINEOUT1 & 2 */ |