summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-05 15:12:22 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-05 15:12:22 +0100
commit096e49d5e6f7bd93395e7ddf7e0239e1644d0505 (patch)
tree8247ad9e691171481fa00fd3cb301bb4f03779d8 /include/sound
parentaf0adf3e81dbcf782388b8a7d0d7094ef5e70f50 (diff)
downloadlinux-096e49d5e6f7bd93395e7ddf7e0239e1644d0505.tar.bz2
ASoC: Add CODEC volatile register operation
Add a volatile_register() operation to the CODEC structure providing a standard operation to query if a register is volatile. This will be used to factor out the register cache I/O operations for the CODECs. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index e6704c0a4404..94fcc65609b6 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -191,6 +191,7 @@ int snd_soc_register_platform(struct snd_soc_platform *platform);
void snd_soc_unregister_platform(struct snd_soc_platform *platform);
int snd_soc_register_codec(struct snd_soc_codec *codec);
void snd_soc_unregister_codec(struct snd_soc_codec *codec);
+int snd_soc_codec_volatile_register(struct snd_soc_codec *codec, int reg);
#ifdef CONFIG_PM
int snd_soc_suspend_device(struct device *dev);
@@ -361,6 +362,7 @@ struct snd_soc_codec {
int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
int (*display_register)(struct snd_soc_codec *, char *,
size_t, unsigned int);
+ int (*volatile_register)(unsigned int);
hw_write_t hw_write;
hw_read_t hw_read;
void *reg_cache;