diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-06-22 08:16:51 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-06-23 18:48:53 -0400 |
commit | 517374704da44c1ba77c1600714fe214524af286 (patch) | |
tree | 878a914bb5bd383e5f883bffc2e5cbf884366a6e /include/sound/soc-dapm.h | |
parent | 30808ca751c3b8d81e948efb8fed7451a8321010 (diff) |
ASoC: Add a shutdown callback
Ensure that the audio subsystem is powered down cleanly when the system
shuts down by providing a shutdown operation. This ensures that all the
components have been returned to an off state cleanly which should avoid
audio issues from partially charged capacitors or noise on digital inputs
if the system is restarted quickly.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index ec8a45f9a069..35814ced2d22 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -279,6 +279,7 @@ int snd_soc_dapm_add_routes(struct snd_soc_codec *codec, | |||
279 | /* dapm events */ | 279 | /* dapm events */ |
280 | int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, char *stream, | 280 | int snd_soc_dapm_stream_event(struct snd_soc_codec *codec, char *stream, |
281 | int event); | 281 | int event); |
282 | void snd_soc_dapm_shutdown(struct snd_soc_device *socdev); | ||
282 | 283 | ||
283 | /* dapm sys fs - used by the core */ | 284 | /* dapm sys fs - used by the core */ |
284 | int snd_soc_dapm_sys_add(struct device *dev); | 285 | int snd_soc_dapm_sys_add(struct device *dev); |