summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-10 14:32:45 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-10 15:40:02 +0000
commit0d0cf00a7fc63cee9a4c4a3b8612879b4f7f42ba (patch)
tree27faa0bd462b4852f16d88be12e4a657700c0bec /include/sound
parent1e5fa31f96d558e53fe80e943305104bf4339711 (diff)
downloadop-kernel-dev-0d0cf00a7fc63cee9a4c4a3b8612879b4f7f42ba.zip
op-kernel-dev-0d0cf00a7fc63cee9a4c4a3b8612879b4f7f42ba.tar.gz
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')
-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 ce3661d..f86e455 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -161,6 +161,8 @@ extern struct snd_ac97_bus_ops soc_ac97_ops;
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);
/* pcm <-> DAI connect */
void snd_soc_free_pcms(struct snd_soc_device *socdev);
@@ -247,6 +249,9 @@ struct snd_soc_codec {
char *name;
struct module *owner;
struct mutex mutex;
+ struct device *dev;
+
+ struct list_head list;
/* callbacks */
int (*set_bias_level)(struct snd_soc_codec *,
OpenPOWER on IntegriCloud