summaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorLiam Girdwood2011-07-04 23:10:53 +0200
committerMark Brown2011-07-05 20:07:41 +0200
commitcb2cf612fbdf457291b6e47064fed24f0dfdd9a5 (patch)
tree7d503087917ada2f27af4776aa6fcb3fa67963ab /include/sound/soc.h
parentASoC: core - Add platform widget IO (diff)
downloadkernel-qcow2-linux-cb2cf612fbdf457291b6e47064fed24f0dfdd9a5.tar.gz
kernel-qcow2-linux-cb2cf612fbdf457291b6e47064fed24f0dfdd9a5.tar.xz
kernel-qcow2-linux-cb2cf612fbdf457291b6e47064fed24f0dfdd9a5.zip
ASoC: core - Add convenience register for platform kcontrol and DAPM
Allow platform probe to register platform kcontrols and DAPM just like the CODEC probe(). Signed-off-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 6ce8dc32a3db..aa19f5a32ba8 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -651,6 +651,14 @@ struct snd_soc_platform_driver {
int (*pcm_new)(struct snd_soc_pcm_runtime *);
void (*pcm_free)(struct snd_pcm *);
+ /* Default control and setup, added after probe() is run */
+ const struct snd_kcontrol_new *controls;
+ int num_controls;
+ const struct snd_soc_dapm_widget *dapm_widgets;
+ int num_dapm_widgets;
+ const struct snd_soc_dapm_route *dapm_routes;
+ int num_dapm_routes;
+
/*
* For platform caused delay reporting.
* Optional.