ASoC: soc-cache: Add support for flat register caching
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 11 Nov 2010 10:04:57 +0000 (10:04 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 11 Nov 2010 15:58:41 +0000 (15:58 +0000)
commit7a30a3db34cc7b2180a1a6c4a51d19d93c8a8b80
tree0a5effd9cc63055d49f837ba4751573f2cb70ef7
parent84e909303dbd3c8d882f152c17d1319f2873e147
ASoC: soc-cache: Add support for flat register caching

This patch introduces the new caching API and migrates the
old caching interface into the new one.  The flat register caching
technique does not use compression at all and it is equivalent to
the old caching technique.  One can still access codec->reg_cache
directly but this is not advised as that will not be portable
across different caching strategies.

None of the existing drivers need to be changed to adapt to this
caching technique.  There should be no noticeable overhead associated
with using the new caching API.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-cache.c
sound/soc/soc-core.c