diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2011-01-12 05:38:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-12 09:55:23 -0500 |
commit | aea170a099793abcd0e6de46b947458073204241 (patch) | |
tree | 187a6851f204b1dd0c98ccce0545248a25c90f24 /include/sound | |
parent | d779fce5d79525d66269c8f6e430e1515d697f3d (diff) |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index c477058ff98a..d609232da82a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -459,6 +459,7 @@ struct snd_soc_codec { | |||
459 | struct list_head card_list; | 459 | struct list_head card_list; |
460 | int num_dai; | 460 | int num_dai; |
461 | enum snd_soc_compress_type compress_type; | 461 | enum snd_soc_compress_type compress_type; |
462 | size_t reg_size; /* reg_cache_size * reg_word_size */ | ||
462 | 463 | ||
463 | /* runtime */ | 464 | /* runtime */ |
464 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ | 465 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ |