summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-01-12 10:38:58 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-12 14:55:23 +0000
commitaea170a099793abcd0e6de46b947458073204241 (patch)
tree187a6851f204b1dd0c98ccce0545248a25c90f24 /include/sound
parentd779fce5d79525d66269c8f6e430e1515d697f3d (diff)
downloadop-kernel-dev-aea170a099793abcd0e6de46b947458073204241.zip
op-kernel-dev-aea170a099793abcd0e6de46b947458073204241.tar.gz
ASoC: soc-cache: Add reg_size as a member to snd_soc_codec
Simplify the use of reg_size, by calculating it once and storing it in the codec structure for later reference. The value of reg_size is reg_cache_size * reg_word_size. 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 c477058f..d609232 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -459,6 +459,7 @@ struct snd_soc_codec {
struct list_head card_list;
int num_dai;
enum snd_soc_compress_type compress_type;
+ size_t reg_size; /* reg_cache_size * reg_word_size */
/* runtime */
struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */
OpenPOWER on IntegriCloud