aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-26 17:23:41 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-27 10:32:14 +0000
commitca9aef50727dec76ab12513ba833a1cf5e9d7e83 (patch)
treeaa383cfffe942ccf16782392eca394f265c7c9fd /sound/soc/codecs/wm8994.h
parentASoC: Add WM8958 microphone detection support (diff)
downloadlinux-dev-ca9aef50727dec76ab12513ba833a1cf5e9d7e83.tar.xz
linux-dev-ca9aef50727dec76ab12513ba833a1cf5e9d7e83.zip
ASoC: Convert WM8994 to use soc-cache.c cache functions
In the process we convert the driver to read registers one at a time when initialising the cache. This has the effect of working around limitations in the sizes of I2C transactions which can be done by some CPUs. Due to the sparseness of the register map the overhead from this should be minimual unless I2C transactions are very expensive to start. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/wm8994.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.h b/sound/soc/codecs/wm8994.h
index 455cae6b4356..0c355bfc88f1 100644
--- a/sound/soc/codecs/wm8994.h
+++ b/sound/soc/codecs/wm8994.h
@@ -43,5 +43,6 @@ struct wm8994_access_mask {
};
extern const struct wm8994_access_mask wm8994_access_masks[WM8994_CACHE_SIZE];
+extern const __devinitdata u16 wm8994_reg_defaults[WM8994_CACHE_SIZE];
#endif