diff options
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r-- | sound/pci/hda/hda_codec.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index ca157e5100c9..2bce925d84ef 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -686,9 +686,13 @@ int snd_hda_resume(struct hda_bus *bus); | |||
686 | #ifdef CONFIG_SND_HDA_POWER_SAVE | 686 | #ifdef CONFIG_SND_HDA_POWER_SAVE |
687 | void snd_hda_power_up(struct hda_codec *codec); | 687 | void snd_hda_power_up(struct hda_codec *codec); |
688 | void snd_hda_power_down(struct hda_codec *codec); | 688 | void snd_hda_power_down(struct hda_codec *codec); |
689 | #define snd_hda_codec_needs_resume(codec) codec->power_count | ||
690 | int snd_hda_codecs_inuse(struct hda_bus *bus); | ||
689 | #else | 691 | #else |
690 | static inline void snd_hda_power_up(struct hda_codec *codec) {} | 692 | static inline void snd_hda_power_up(struct hda_codec *codec) {} |
691 | static inline void snd_hda_power_down(struct hda_codec *codec) {} | 693 | static inline void snd_hda_power_down(struct hda_codec *codec) {} |
694 | #define snd_hda_codec_needs_resume(codec) 1 | ||
695 | #define snd_hda_codecs_inuse(bus) 1 | ||
692 | #endif | 696 | #endif |
693 | 697 | ||
694 | #endif /* __SOUND_HDA_CODEC_H */ | 698 | #endif /* __SOUND_HDA_CODEC_H */ |