diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-26 09:59:27 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-27 06:56:34 -0500 |
commit | 6f8ab4ac292f81b9246ddf363bf1c6a2fc7a0629 (patch) | |
tree | 1ca2bcaefd986fb19b72a1ac741c9371aec2f28a /include/sound/soc.h | |
parent | e7361ec4996c170c63c4ac379085896db85ff34d (diff) |
ASoC: Export card PM callbacks for use in direct registered cards
Allow hookup of cards registered directly with the core to the PM
operations by exporting the device power management operations to
modules, also exporting the default PM operations since it is
expected that most cards will end up using exactly the same setup.
Note that the callbacks require that the driver data for the card be
the snd_soc_card.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 2d10090a08c0..7e8cf4f318a9 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -260,6 +260,9 @@ enum snd_soc_compress_type { | |||
260 | 260 | ||
261 | int snd_soc_register_card(struct snd_soc_card *card); | 261 | int snd_soc_register_card(struct snd_soc_card *card); |
262 | int snd_soc_unregister_card(struct snd_soc_card *card); | 262 | int snd_soc_unregister_card(struct snd_soc_card *card); |
263 | int snd_soc_suspend(struct device *dev); | ||
264 | int snd_soc_resume(struct device *dev); | ||
265 | int snd_soc_poweroff(struct device *dev); | ||
263 | int snd_soc_register_platform(struct device *dev, | 266 | int snd_soc_register_platform(struct device *dev, |
264 | struct snd_soc_platform_driver *platform_drv); | 267 | struct snd_soc_platform_driver *platform_drv); |
265 | void snd_soc_unregister_platform(struct device *dev); | 268 | void snd_soc_unregister_platform(struct device *dev); |
@@ -802,4 +805,6 @@ static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card) | |||
802 | extern struct dentry *snd_soc_debugfs_root; | 805 | extern struct dentry *snd_soc_debugfs_root; |
803 | #endif | 806 | #endif |
804 | 807 | ||
808 | extern const struct dev_pm_ops snd_soc_pm_ops; | ||
809 | |||
805 | #endif | 810 | #endif |