aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-11-28 08:29:45 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-09 05:49:26 -0500
commitc5af3a2e192d333997d1e191f3eba7fd2f869681 (patch)
treebd63c16c657b473ea3823faae5644642d9ae88db /include
parentca4513fe06c483bf0111c990059d42f97288605d (diff)
ASoC: Add card registration API
ASoC v2 allows cards, codecs and platforms to instantiate separately, with the overall ASoC device only being instantiated once all the required components have registered. As part of backporting Liam's work introduce an initial version of the card registration functions. At present these do nothing active and are internal only, they will be exposed to machine drivers after further backporting. Adding this now allows the datastructures used for dynamic card instantiation to be built up gradually. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-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 79d855d2bddd..4a578b5d855c 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -333,6 +333,11 @@ struct snd_soc_dai_link {
333/* SoC card */ 333/* SoC card */
334struct snd_soc_card { 334struct snd_soc_card {
335 char *name; 335 char *name;
336 struct device *dev;
337
338 struct list_head list;
339
340 int instantiated;
336 341
337 int (*probe)(struct platform_device *pdev); 342 int (*probe)(struct platform_device *pdev);
338 int (*remove)(struct platform_device *pdev); 343 int (*remove)(struct platform_device *pdev);