ALSA: ac97: Define dummy functions for snd_ac97_suspend() and resume()
PATCH 1/1 ALSA: ac97: Define dummy functions for snd_ac97_suspend() and resume()
For allowing the build without CONFIG_PM, add definitions of dummy functions for snd_ac97_suspend() and snd_ac97_resume() without CONFIG_PM, too.
Signed-off-by Takashi Iwai <[email protected]>
--- include/sound/ac97_codec.h | 3 +++ 1 file changed, 3 insertions(+)
include/sound/ac97_codec.h +3 -0
@@ -335,6 +335,9 @@ static inline int snd_ac97_update_power(struct snd_ac97 *ac97, int reg,#ifdef CONFIG_PM void snd_ac97_suspend (struct snd_ac97 *ac97);void snd_ac97_resume (struct snd_ac97 *ac97); +#else +static inline void snd_ac97_suspend (struct snd_ac97 *ac97) {} +static inline void snd_ac97_resume (struct snd_ac97 *ac97) {}#endif int snd_ac97_reset (struct snd_ac97 *ac97,bool try_warm,unsigned int id,unsigned int id_mask);
Signature · 1 line
2.35.3
Quoted 4 lines · Takashi Iwai
For allowing the build without
CONFIG_PM, add definitions of dummy functions forsnd_ac97_suspend()andsnd_ac97_resume()withoutCONFIG_PM, too.Quoted 1 line
Signed-off-by Takashi Iwai <[email protected]>
Reviewed-by Jaroslav Kysela <[email protected]>
Signature · 2 lines
Jaroslav Kysela <[email protected]> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.
Quoted 5 lines · Takashi Iwai
For allowing the build without
CONFIG_PM, add definitions of dummy functions forsnd_ac97_suspend()andsnd_ac97_resume()withoutCONFIG_PM, too.Signed-off-by Takashi Iwai <[email protected]>
Apologies for not catching this.
Reviewed-by Tasos Sahanidis <[email protected]>