]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: wm8962: Implement DSP2 configuration initialisation
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Feb 2012 20:19:47 +0000 (20:19 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 1 Apr 2012 10:28:24 +0000 (11:28 +0100)
We can simply use the register cache code to synchronise the current
configuration down to the device when bringing up the DSP.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8962.c

index 15d467ff91b496b6bb72dfbdd5eb4c9bfb5500fa..640001cf479bfd62c8fbb4ba0ab87dddd6daabe2 100644 (file)
@@ -1478,7 +1478,8 @@ static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
 
 static int wm8962_dsp2_write_config(struct snd_soc_codec *codec)
 {
-       return 0;
+       return regcache_sync_region(codec->control_data,
+                                   WM8962_HDBASS_AI_1, WM8962_MAX_REGISTER);
 }
 
 static int wm8962_dsp2_set_enable(struct snd_soc_codec *codec, u16 val)