aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-08-24 12:38:08 -0400
committerTakashi Iwai <tiwai@suse.de>2012-08-30 10:50:13 -0400
commit83012a7ccbb90dee33c97a004b3e374f988612af (patch)
tree4e6e4c6f1f21150a4c82cbbefb97995cda924d17 /sound/pci/hda/hda_codec.h
parent432c641e013d6e294e2ddf06d32a610eb1d4d856 (diff)
ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE
CONFIG_SND_HDA_POWER_SAVE is no longer an experimental feature and its behavior can be well controlled via the default value and module parameter. Let's just replace it with the standard CONFIG_PM. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 2e5a22fec0be..7e1709cb8995 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -614,7 +614,7 @@ struct hda_bus_ops {
614 struct hda_pcm *pcm); 614 struct hda_pcm *pcm);
615 /* reset bus for retry verb */ 615 /* reset bus for retry verb */
616 void (*bus_reset)(struct hda_bus *bus); 616 void (*bus_reset)(struct hda_bus *bus);
617#ifdef CONFIG_SND_HDA_POWER_SAVE 617#ifdef CONFIG_PM
618 /* notify power-up/down from codec to controller */ 618 /* notify power-up/down from codec to controller */
619 void (*pm_notify)(struct hda_bus *bus, bool power_up); 619 void (*pm_notify)(struct hda_bus *bus, bool power_up);
620#endif 620#endif
@@ -712,8 +712,6 @@ struct hda_codec_ops {
712#ifdef CONFIG_PM 712#ifdef CONFIG_PM
713 int (*suspend)(struct hda_codec *codec); 713 int (*suspend)(struct hda_codec *codec);
714 int (*resume)(struct hda_codec *codec); 714 int (*resume)(struct hda_codec *codec);
715#endif
716#ifdef CONFIG_SND_HDA_POWER_SAVE
717 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid); 715 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
718#endif 716#endif
719 void (*reboot_notify)(struct hda_codec *codec); 717 void (*reboot_notify)(struct hda_codec *codec);
@@ -867,7 +865,7 @@ struct hda_codec {
867 unsigned int no_jack_detect:1; /* Machine has no jack-detection */ 865 unsigned int no_jack_detect:1; /* Machine has no jack-detection */
868 unsigned int pcm_format_first:1; /* PCM format must be set first */ 866 unsigned int pcm_format_first:1; /* PCM format must be set first */
869 unsigned int epss:1; /* supporting EPSS? */ 867 unsigned int epss:1; /* supporting EPSS? */
870#ifdef CONFIG_SND_HDA_POWER_SAVE 868#ifdef CONFIG_PM
871 unsigned int power_on :1; /* current (global) power-state */ 869 unsigned int power_on :1; /* current (global) power-state */
872 int power_transition; /* power-state in transition */ 870 int power_transition; /* power-state in transition */
873 int power_count; /* current (global) power refcount */ 871 int power_count; /* current (global) power refcount */
@@ -1049,7 +1047,7 @@ int snd_hda_resume(struct hda_bus *bus);
1049static inline 1047static inline
1050int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid) 1048int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid)
1051{ 1049{
1052#ifdef CONFIG_SND_HDA_POWER_SAVE 1050#ifdef CONFIG_PM
1053 if (codec->patch_ops.check_power_status) 1051 if (codec->patch_ops.check_power_status)
1054 return codec->patch_ops.check_power_status(codec, nid); 1052 return codec->patch_ops.check_power_status(codec, nid);
1055#endif 1053#endif
@@ -1066,7 +1064,7 @@ const char *snd_hda_get_jack_location(u32 cfg);
1066/* 1064/*
1067 * power saving 1065 * power saving
1068 */ 1066 */
1069#ifdef CONFIG_SND_HDA_POWER_SAVE 1067#ifdef CONFIG_PM
1070void snd_hda_power_save(struct hda_codec *codec, int delta, bool d3wait); 1068void snd_hda_power_save(struct hda_codec *codec, int delta, bool d3wait);
1071void snd_hda_update_power_acct(struct hda_codec *codec); 1069void snd_hda_update_power_acct(struct hda_codec *codec);
1072#else 1070#else