summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-29 12:18:53 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-30 01:59:39 +0000
commit1b39bf3468e03016ffdcadef3dac1fd75d2db6fa (patch)
treed1946d5baf0863bbdefc95f59dd5d8affeede04f /sound/soc/codecs/wm8994.c
parenta421a0e41c28ec4bfc719194e95065ec1cb4aee4 (diff)
downloadblackbird-op-linux-1b39bf3468e03016ffdcadef3dac1fd75d2db6fa.tar.gz
blackbird-op-linux-1b39bf3468e03016ffdcadef3dac1fd75d2db6fa.zip
ASoC: Enable ASoC register map dump for some regmap CODECs
It's still useful to be able to poke around in the register map at runtime. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r--sound/soc/codecs/wm8994.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index 71472b626750..93d27b660257 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -3815,12 +3815,20 @@ static int wm8994_codec_remove(struct snd_soc_codec *codec)
return 0;
}
+static int wm8994_soc_volatile(struct snd_soc_codec *codec,
+ unsigned int reg)
+{
+ return true;
+}
+
static struct snd_soc_codec_driver soc_codec_dev_wm8994 = {
.probe = wm8994_codec_probe,
.remove = wm8994_codec_remove,
.suspend = wm8994_suspend,
.resume = wm8994_resume,
.set_bias_level = wm8994_set_bias_level,
+ .reg_cache_size = WM8994_MAX_REGISTER,
+ .volatile_register = wm8994_soc_volatile,
};
static int __devinit wm8994_probe(struct platform_device *pdev)
OpenPOWER on IntegriCloud