diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-27 06:43:28 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-27 06:43:28 -0500 |
commit | fee2fba3586f78762ecc5f432dfd3602765a31b3 (patch) | |
tree | 9435bc32c3e41ad74dbcb18d829d8c51227c16c3 /sound/pci/hda/hda_intel.c | |
parent | 986862bdf17655d012f9b0654925dccdcc4183c9 (diff) |
ALSA: hda - Move power_save option to hda_intel.c
Move power_save option into hda_intel.c, and make a field in hda_bus,
instead of keeping module parameters in separate files.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 6 |
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); | |||
83 | MODULE_PARM_DESC(enable_msi, "Enable Message Signaled Interrupt (MSI)"); | 83 | MODULE_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 */ | 86 | static int power_save = CONFIG_SND_HDA_POWER_SAVE_DEFAULT; |
87 | module_param(power_save, int, 0644); | ||
88 | MODULE_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; |