aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r--sound/pci/hda/hda_intel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index f13ec4c71f8a..f17ccd513350 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -83,7 +83,10 @@ module_param(enable_msi, int, 0444);
83MODULE_PARM_DESC(enable_msi, "Enable Message Signaled Interrupt (MSI)"); 83MODULE_PARM_DESC(enable_msi, "Enable Message Signaled Interrupt (MSI)");
84 84
85#ifdef CONFIG_SND_HDA_POWER_SAVE 85#ifdef CONFIG_SND_HDA_POWER_SAVE
86/* power_save option is defined in hda_codec.c */ 86static int power_save = CONFIG_SND_HDA_POWER_SAVE_DEFAULT;
87module_param(power_save, int, 0644);
88MODULE_PARM_DESC(power_save, "Automatic power-saving timeout "
89 "(in second, 0 = disable).");
87 90
88/* reset the HD-audio controller in power save mode. 91/* reset the HD-audio controller in power save mode.
89 * this may give more power-saving, but will take longer time to 92 * this may give more power-saving, but will take longer time to
@@ -1230,6 +1233,7 @@ static int __devinit azx_codec_create(struct azx *chip, const char *model,
1230 memset(&bus_temp, 0, sizeof(bus_temp)); 1233 memset(&bus_temp, 0, sizeof(bus_temp));
1231 bus_temp.private_data = chip; 1234 bus_temp.private_data = chip;
1232 bus_temp.modelname = model; 1235 bus_temp.modelname = model;
1236 bus_temp.power_save = &power_save;
1233 bus_temp.pci = chip->pci; 1237 bus_temp.pci = chip->pci;
1234 bus_temp.ops.command = azx_send_cmd; 1238 bus_temp.ops.command = azx_send_cmd;
1235 bus_temp.ops.get_response = azx_get_response; 1239 bus_temp.ops.get_response = azx_get_response;