summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/adau1781.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-11-21 20:53:51 +0300
committerMark Brown <broonie@kernel.org>2014-11-21 21:17:50 +0300
commitdee9cec42fc9cc4635ea2f45939e443210a638f8 (patch)
tree4dc001051580be8355f678f64879d0242c39cd63 /sound/soc/codecs/adau1781.c
parenta3a1ec66d6c9320e676fc99dbaf18db4f8dcda93 (diff)
downloadlinux-dee9cec42fc9cc4635ea2f45939e443210a638f8.tar.xz
ASoC: adau17x1: Mark DSP parameter memory as readable and precious
To be able to read back data from the DSP parameter memory the register range needs to be marked as readable. At the same time we do not want them to e.g. appear in debugfs output so mark them as precious as well. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau1781.c')
-rw-r--r--sound/soc/codecs/adau1781.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau1781.c b/sound/soc/codecs/adau1781.c
index 4c8ddc3c69e1..926fc99c1dda 100644
--- a/sound/soc/codecs/adau1781.c
+++ b/sound/soc/codecs/adau1781.c
@@ -472,6 +472,7 @@ const struct regmap_config adau1781_regmap_config = {
.num_reg_defaults = ARRAY_SIZE(adau1781_reg_defaults),
.readable_reg = adau1781_readable_register,
.volatile_reg = adau17x1_volatile_register,
+ .precious_reg = adau17x1_precious_register,
.cache_type = REGCACHE_RBTREE,
};
EXPORT_SYMBOL_GPL(adau1781_regmap_config);