diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2011-01-13 07:20:38 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-13 09:17:53 -0500 |
commit | 1500b7b5ffaacb8199e0a61162f5d349fb19acbe (patch) | |
tree | 7e8ed00274943950bc5dfd34f0fb9edf1d3f2199 /include/sound | |
parent | d4754ec91c7b094298f0b2ba02327e6887671edc (diff) |
ASoC: Automatically assign the default readable()/volatile() functions
Ensure that all calls to readable_register()/volatile_register() go via
the snd_soc_codec function pointers.
If the default register access table has been given but no functions
for handling readable()/volatile() registers, use the default ones provided
by soc-cache.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 97d1832bb9df..accb8a16c165 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -480,6 +480,8 @@ struct snd_soc_codec { | |||
480 | int num_dai; | 480 | int num_dai; |
481 | enum snd_soc_compress_type compress_type; | 481 | enum snd_soc_compress_type compress_type; |
482 | size_t reg_size; /* reg_cache_size * reg_word_size */ | 482 | size_t reg_size; /* reg_cache_size * reg_word_size */ |
483 | int (*volatile_register)(struct snd_soc_codec *, unsigned int); | ||
484 | int (*readable_register)(struct snd_soc_codec *, unsigned int); | ||
483 | 485 | ||
484 | /* runtime */ | 486 | /* runtime */ |
485 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ | 487 | struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ |