diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2011-01-19 09:53:36 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-20 08:40:30 -0500 |
commit | dad8e7aeeb83a26d267e757e4c1cf69591850477 (patch) | |
tree | 03ba025a19d20e4272db00761cf8723e19ecae38 /include/sound | |
parent | e66ef2f81f1d36b5413e3fc7ff548de683f0750b (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index d244f9013767..c184f84a354c 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -488,6 +488,7 @@ struct snd_soc_codec { | |||
488 | /* runtime */ | 488 | /* runtime */ |
489 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ | 489 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ |
490 | unsigned int active; | 490 | unsigned int active; |
491 | unsigned int cache_bypass:1; /* Suppress access to the cache */ | ||
491 | unsigned int cache_only:1; /* Suppress writes to hardware */ | 492 | unsigned int cache_only:1; /* Suppress writes to hardware */ |
492 | unsigned int cache_sync:1; /* Cache needs to be synced to hardware */ | 493 | unsigned int cache_sync:1; /* Cache needs to be synced to hardware */ |
493 | unsigned int suspended:1; /* Codec is in suspend PM state */ | 494 | unsigned int suspended:1; /* Codec is in suspend PM state */ |