diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-06-08 03:17:27 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-06-13 10:28:31 -0400 |
commit | 38f582270feb19ea8821cb64c5d2fdbd6bdd0bd9 (patch) | |
tree | f8b3972601ef4cbe7a56508af7fea8faeead4aff /sound/pci/ac97 | |
parent | 05a076de83b507238cd186e93daeaf15820d570e (diff) |
[ALSA] ac97 - Fix power_save option value as time-out
The power_save option was set as boot although it was meant to be a
timeout value like the same option of snd-hda-intel originally.
Now fixed to the same style.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/ac97')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index 45fd29017ddd..2d2f16e11082 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -49,8 +49,9 @@ MODULE_PARM_DESC(enable_loopback, "Enable AC97 ADC/DAC Loopback Control"); | |||
49 | 49 | ||
50 | #ifdef CONFIG_SND_AC97_POWER_SAVE | 50 | #ifdef CONFIG_SND_AC97_POWER_SAVE |
51 | static int power_save = CONFIG_SND_AC97_POWER_SAVE_DEFAULT; | 51 | static int power_save = CONFIG_SND_AC97_POWER_SAVE_DEFAULT; |
52 | module_param(power_save, bool, 0644); | 52 | module_param(power_save, int, 0644); |
53 | MODULE_PARM_DESC(power_save, "Enable AC97 power-saving control"); | 53 | MODULE_PARM_DESC(power_save, "Automatic power-saving timeout " |
54 | "(in second, 0 = disable)."); | ||
54 | #endif | 55 | #endif |
55 | /* | 56 | /* |
56 | 57 | ||
@@ -2362,7 +2363,7 @@ int snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) | |||
2362 | * that open/close frequently) | 2363 | * that open/close frequently) |
2363 | */ | 2364 | */ |
2364 | schedule_delayed_work(&ac97->power_work, | 2365 | schedule_delayed_work(&ac97->power_work, |
2365 | msecs_to_jiffies(2000)); | 2366 | msecs_to_jiffies(power_save * 1000)); |
2366 | else { | 2367 | else { |
2367 | cancel_delayed_work(&ac97->power_work); | 2368 | cancel_delayed_work(&ac97->power_work); |
2368 | update_power_regs(ac97); | 2369 | update_power_regs(ac97); |