diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-26 17:23:41 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-27 10:32:14 +0000 |
commit | ca9aef50727dec76ab12513ba833a1cf5e9d7e83 (patch) | |
tree | aa383cfffe942ccf16782392eca394f265c7c9fd /sound/soc/codecs/wm8994.h | |
parent | 821edd2fb5b289b84d715fb744106019fa2e1920 (diff) | |
download | blackbird-op-linux-ca9aef50727dec76ab12513ba833a1cf5e9d7e83.tar.gz blackbird-op-linux-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 'sound/soc/codecs/wm8994.h')
-rw-r--r-- | sound/soc/codecs/wm8994.h | 1 |
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 |