aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 82161466d3b0..663aa4fc384a 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -26,10 +26,6 @@
26#include <sound/pcm.h> 26#include <sound/pcm.h>
27#include <sound/hwdep.h> 27#include <sound/hwdep.h>
28 28
29#if defined(CONFIG_PM) || defined(CONFIG_SND_HDA_POWER_SAVE)
30#define SND_HDA_NEEDS_RESUME /* resume control code is required */
31#endif
32
33/* 29/*
34 * nodes 30 * nodes
35 */ 31 */
@@ -704,17 +700,15 @@ struct hda_codec_ops {
704 int (*init)(struct hda_codec *codec); 700 int (*init)(struct hda_codec *codec);
705 void (*free)(struct hda_codec *codec); 701 void (*free)(struct hda_codec *codec);
706 void (*unsol_event)(struct hda_codec *codec, unsigned int res); 702 void (*unsol_event)(struct hda_codec *codec, unsigned int res);
707#ifdef SND_HDA_NEEDS_RESUME 703#ifdef CONFIG_PM
708 int (*suspend)(struct hda_codec *codec, pm_message_t state); 704 int (*suspend)(struct hda_codec *codec, pm_message_t state);
705 int (*pre_resume)(struct hda_codec *codec);
709 int (*resume)(struct hda_codec *codec); 706 int (*resume)(struct hda_codec *codec);
710#endif 707#endif
711#ifdef CONFIG_SND_HDA_POWER_SAVE 708#ifdef CONFIG_SND_HDA_POWER_SAVE
712 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 709 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
713#endif 710#endif
714 void (*reboot_notify)(struct hda_codec *codec); 711 void (*reboot_notify)(struct hda_codec *codec);
715#ifdef SND_HDA_NEEDS_RESUME
716 int (*pre_resume)(struct hda_codec *codec);
717#endif
718}; 712};
719 713
720/* record for amp information cache */ 714/* record for amp information cache */
@@ -930,7 +924,7 @@ void snd_hda_sequence_write(struct hda_codec *codec,
930int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex); 924int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex);
931 925
932/* cached write */ 926/* cached write */
933#ifdef SND_HDA_NEEDS_RESUME 927#ifdef CONFIG_PM
934int snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, 928int snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid,
935 int direct, unsigned int verb, unsigned int parm); 929 int direct, unsigned int verb, unsigned int parm);
936void snd_hda_sequence_write_cache(struct hda_codec *codec, 930void snd_hda_sequence_write_cache(struct hda_codec *codec,