summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorXiubo Li2014-03-26 06:40:23 +0100
committerMark Brown2014-04-14 18:22:18 +0200
commita39f75f7907fa3a708751dc283e3ab3e7da526b8 (patch)
tree464d1902678907ac8ab6f8999f6f49381e0fcaa2 /include/sound
parentLinux 3.15-rc1 (diff)
downloadkernel-qcow2-linux-a39f75f7907fa3a708751dc283e3ab3e7da526b8.tar.gz
kernel-qcow2-linux-a39f75f7907fa3a708751dc283e3ab3e7da526b8.tar.xz
kernel-qcow2-linux-a39f75f7907fa3a708751dc283e3ab3e7da526b8.zip
ASoC: core: Move the default regmap I/O setting to snd_soc_register_codec()
Add the default regmap I/O setting to snd_soc_register_codec() while the CODEC is initialising, which will be called by CODEC driver device probe(), and then we can make XXX_set_cache_io() go away entirely from each CODEC ASoC probe. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
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 0b83168d8ff4..2f62436026d2 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -754,6 +754,7 @@ struct snd_soc_codec_driver {
unsigned int freq_in, unsigned int freq_out);
/* codec IO */
+ struct regmap *(*get_regmap)(struct device *);
unsigned int (*read)(struct snd_soc_codec *, unsigned int);
int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);
int (*display_register)(struct snd_soc_codec *, char *,