aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/ak4114.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-13 05:24:08 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-28 16:30:12 -0500
commit1293617cddc40971917150e3f5bf66b7306e2e7e (patch)
tree857f6dd1c0c278f290963f7a3739f89d1652d98d /include/sound/ak4114.h
parenta850ef8afd3cd1eecd2e136f8dca0c06599eade8 (diff)
ALSA: ak411x: Add PM helper functions
Define snd_ak4114_suspend() and snd_ak4114_resume() functions to handle PM properly, stopping and restarting the work at PM. Currently only ice1712/juli.c deals with the PM and ak4114, so fix the calls there appropriately. The same PM functions are defined in ak4113.c, too, although they aren't currently called yet (ice1712/quartet.c may be enhanced to support PM later). Acked-by: Jaroslav Kysela <perex@perex.cz> Tested-by: Pavel Hofman <pavel.hofman@ivitera.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/ak4114.h')
-rw-r--r--include/sound/ak4114.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/ak4114.h b/include/sound/ak4114.h
index 069299a88915..e681df2c95e1 100644
--- a/include/sound/ak4114.h
+++ b/include/sound/ak4114.h
@@ -199,5 +199,13 @@ int snd_ak4114_build(struct ak4114 *ak4114,
199int snd_ak4114_external_rate(struct ak4114 *ak4114); 199int snd_ak4114_external_rate(struct ak4114 *ak4114);
200int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags); 200int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags);
201 201
202#ifdef CONFIG_PM
203void snd_ak4114_suspend(struct ak4114 *chip);
204void snd_ak4114_resume(struct ak4114 *chip);
205#else
206static inline void snd_ak4114_suspend(struct ak4114 *chip) {}
207static inline void snd_ak4114_resume(struct ak4114 *chip) {}
208#endif
209
202#endif /* __SOUND_AK4114_H */ 210#endif /* __SOUND_AK4114_H */
203 211