diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-06-13 14:55:02 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-06-13 15:06:28 -0400 |
commit | 831dc0f10f7b2a4856094ff160c018bf19f77527 (patch) | |
tree | ae12de8cf87de3a30bfacb1d869b1db631fbbe31 /include | |
parent | 619439998ac32953d737fbe2dc82eb67024547d0 (diff) |
ASoC: Add stub suspend and resume calls for ASoC subdevices
Now that ASoC subdevices can be regular devices they can have normal
suspend and resume calls from their buses. However, suspending them
individually is not desirable since this can lead to problems such as
pops and clicks from devices being suspended with their signals being
amplified or clocks being stopped suddenly.
This will be resolved by having the normal device model suspend and
resume calls call into ASoC which will suspend the entire card while any
of its components are suspended. At present this is not yet implemented
but in order to aid the transition of drivers to the standard device
model this patch adds API calls for the notifications.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-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 5297ba7e2c41..e6704c0a4404 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -192,6 +192,11 @@ void snd_soc_unregister_platform(struct snd_soc_platform *platform); | |||
192 | int snd_soc_register_codec(struct snd_soc_codec *codec); | 192 | int snd_soc_register_codec(struct snd_soc_codec *codec); |
193 | void snd_soc_unregister_codec(struct snd_soc_codec *codec); | 193 | void snd_soc_unregister_codec(struct snd_soc_codec *codec); |
194 | 194 | ||
195 | #ifdef CONFIG_PM | ||
196 | int snd_soc_suspend_device(struct device *dev); | ||
197 | int snd_soc_resume_device(struct device *dev); | ||
198 | #endif | ||
199 | |||
195 | /* pcm <-> DAI connect */ | 200 | /* pcm <-> DAI connect */ |
196 | void snd_soc_free_pcms(struct snd_soc_device *socdev); | 201 | void snd_soc_free_pcms(struct snd_soc_device *socdev); |
197 | int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid); | 202 | int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid); |