aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-07 11:38:44 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-08 13:55:51 -0500
commit89b95ac09e408b5d88a8b3792dc76c863e45fb31 (patch)
tree32165ddb2eebf9b746a1ab239b4a4795c4fd0414 /include/sound/soc.h
parentf9c540456ab662a3b5d79c1fa93c51305a97fdf3 (diff)
ASoC: Add DAPM widget and path data to CODEC driver structure
Allow a slight simplification of CODEC drivers by allowing DAPM routes and widgets to be provided in a table. They will be instantiated at the end of CODEC probe. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9c2a6dd170f1..6f197589b6d7 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -562,6 +562,12 @@ struct snd_soc_codec_driver {
562 pm_message_t state); 562 pm_message_t state);
563 int (*resume)(struct snd_soc_codec *); 563 int (*resume)(struct snd_soc_codec *);
564 564
565 /* Default DAPM setup, added after probe() is run */
566 const struct snd_soc_dapm_widget *dapm_widgets;
567 int num_dapm_widgets;
568 const struct snd_soc_dapm_route *dapm_routes;
569 int num_dapm_routes;
570
565 /* codec IO */ 571 /* codec IO */
566 unsigned int (*read)(struct snd_soc_codec *, unsigned int); 572 unsigned int (*read)(struct snd_soc_codec *, unsigned int);
567 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int); 573 int (*write)(struct snd_soc_codec *, unsigned int, unsigned int);