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>
This commit is contained in:
@@ -317,5 +317,13 @@ int snd_ak4113_build(struct ak4113 *ak4113,
|
||||
int snd_ak4113_external_rate(struct ak4113 *ak4113);
|
||||
int snd_ak4113_check_rate_and_errors(struct ak4113 *ak4113, unsigned int flags);
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
void snd_ak4113_suspend(struct ak4113 *chip);
|
||||
void snd_ak4113_resume(struct ak4113 *chip);
|
||||
#else
|
||||
static inline void snd_ak4113_suspend(struct ak4113 *chip) {}
|
||||
static inline void snd_ak4113_resume(struct ak4113 *chip) {}
|
||||
#endif
|
||||
|
||||
#endif /* __SOUND_AK4113_H */
|
||||
|
||||
|
Reference in New Issue
Block a user