summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8962.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-23 20:19:47 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-01 11:28:24 +0100
commit26b427a701f81d4092869682c386a3e317983c9d (patch)
tree24d0cfa3173bc1655531861499621f2cc8a4679e /sound/soc/codecs/wm8962.c
parent9dd90c5db0401061009183e6407feff3724ebc8b (diff)
downloadop-kernel-dev-26b427a701f81d4092869682c386a3e317983c9d.zip
op-kernel-dev-26b427a701f81d4092869682c386a3e317983c9d.tar.gz
ASoC: wm8962: Implement DSP2 configuration initialisation
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>
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r--sound/soc/codecs/wm8962.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 15d467f..640001c 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -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)
OpenPOWER on IntegriCloud