aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-10 09:32:45 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-10 10:40:02 -0500
commit0d0cf00a7fc63cee9a4c4a3b8612879b4f7f42ba (patch)
tree27faa0bd462b4852f16d88be12e4a657700c0bec /include/sound/soc.h
parent1e5fa31f96d558e53fe80e943305104bf4339711 (diff)
ASoC: Add codec registration API
Another part of the backporting of Liam's ASoC v2 work. Using this is more complicated than the other registration types since currently the codec is instantiated during the probe of the ASoC device so we can't currently readily wait for the codec to register. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index ce3661d07c24..f86e455d3828 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -161,6 +161,8 @@ extern struct snd_ac97_bus_ops soc_ac97_ops;
161 161
162int snd_soc_register_platform(struct snd_soc_platform *platform); 162int snd_soc_register_platform(struct snd_soc_platform *platform);
163void snd_soc_unregister_platform(struct snd_soc_platform *platform); 163void snd_soc_unregister_platform(struct snd_soc_platform *platform);
164int snd_soc_register_codec(struct snd_soc_codec *codec);
165void snd_soc_unregister_codec(struct snd_soc_codec *codec);
164 166
165/* pcm <-> DAI connect */ 167/* pcm <-> DAI connect */
166void snd_soc_free_pcms(struct snd_soc_device *socdev); 168void snd_soc_free_pcms(struct snd_soc_device *socdev);
@@ -247,6 +249,9 @@ struct snd_soc_codec {
247 char *name; 249 char *name;
248 struct module *owner; 250 struct module *owner;
249 struct mutex mutex; 251 struct mutex mutex;
252 struct device *dev;
253
254 struct list_head list;
250 255
251 /* callbacks */ 256 /* callbacks */
252 int (*set_bias_level)(struct snd_soc_codec *, 257 int (*set_bias_level)(struct snd_soc_codec *,