summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-01-19 14:53:36 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-20 13:40:30 +0000
commitdad8e7aeeb83a26d267e757e4c1cf69591850477 (patch)
tree03ba025a19d20e4272db00761cf8723e19ecae38 /include/sound
parente66ef2f81f1d36b5413e3fc7ff548de683f0750b (diff)
downloadop-kernel-dev-dad8e7aeeb83a26d267e757e4c1cf69591850477.zip
op-kernel-dev-dad8e7aeeb83a26d267e757e4c1cf69591850477.tar.gz
ASoC: soc-cache: Introduce the cache_bypass option
This is primarily needed to avoid writing back to the cache whenever we are syncing the cache with the hardware. This gives a performance benefit especially for large register maps. 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>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index d244f90..c184f84 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -488,6 +488,7 @@ struct snd_soc_codec {
/* runtime */
struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */
unsigned int active;
+ unsigned int cache_bypass:1; /* Suppress access to the cache */
unsigned int cache_only:1; /* Suppress writes to hardware */
unsigned int cache_sync:1; /* Cache needs to be synced to hardware */
unsigned int suspended:1; /* Codec is in suspend PM state */
OpenPOWER on IntegriCloud