aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-08-13 10:10:30 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:58:50 -0400
commitdee1b66ce4f406d36fef70d1dd4360c5f1d26218 (patch)
tree0e72125049f8243e5787b16b8d2d77d0e852a306 /sound/pci/hda/hda_intel.c
parentae0a8ed8bf9c2edee4b831dee91ae914b9641fdd (diff)
[ALSA] hda-intel - Add power_save_controller module option
Add power_save_controller module option instead of define flag. Also, added descriptions of new module options in ALSA-Configuration.txt. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index f9c7c2e4f922..e20629a2d7d1 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -75,8 +75,18 @@ MODULE_PARM_DESC(single_cmd, "Use single command to communicate with codecs "
75module_param(enable_msi, int, 0); 75module_param(enable_msi, int, 0);
76MODULE_PARM_DESC(enable_msi, "Enable Message Signaled Interrupt (MSI)"); 76MODULE_PARM_DESC(enable_msi, "Enable Message Signaled Interrupt (MSI)");
77 77
78#ifdef CONFIG_SND_HDA_POWER_SAVE
78/* power_save option is defined in hda_codec.c */ 79/* power_save option is defined in hda_codec.c */
79 80
81/* reset the HD-audio controller in power save mode.
82 * this may give more power-saving, but will take longer time to
83 * wake up.
84 */
85static int power_save_controller = 1;
86module_param(power_save_controller, bool, 0644);
87MODULE_PARM_DESC(power_save_controller, "Reset controller in power save mode.");
88#endif
89
80/* just for backward compatibility */ 90/* just for backward compatibility */
81static int enable; 91static int enable;
82module_param(enable, bool, 0444); 92module_param(enable, bool, 0444);
@@ -102,17 +112,6 @@ MODULE_DESCRIPTION("Intel HDA driver");
102 112
103#define SFX "hda-intel: " 113#define SFX "hda-intel: "
104 114
105/*
106 * build flags
107 */
108
109/*
110 * reset the HD-audio controller in power save mode.
111 * this may give more power-saving, but will take longer time to
112 * wake up.
113 */
114#define HDA_POWER_SAVE_RESET_CONTROLLER
115
116 115
117/* 116/*
118 * registers 117 * registers
@@ -1533,10 +1532,8 @@ static void azx_power_notify(struct hda_codec *codec)
1533 } 1532 }
1534 if (power_on) 1533 if (power_on)
1535 azx_init_chip(chip); 1534 azx_init_chip(chip);
1536#ifdef HDA_POWER_SAVE_RESET_CONTROLLER 1535 else if (chip->running && power_save_controller)
1537 else if (chip->running)
1538 azx_stop_chip(chip); 1536 azx_stop_chip(chip);
1539#endif
1540} 1537}
1541#endif /* CONFIG_SND_HDA_POWER_SAVE */ 1538#endif /* CONFIG_SND_HDA_POWER_SAVE */
1542 1539