summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-30 14:03:55 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-30 14:03:55 +0000
commit21ba6c674e280bb2e5a8ffaa0c2d117472364c98 (patch)
treecbbfe6bef70f21925265ceb71b08264f5c6fae65 /perl-install/harddrake/sound.pm
parentb140d1030f205d71a69a832945c4f30d2703538b (diff)
downloaddrakx-21ba6c674e280bb2e5a8ffaa0c2d117472364c98.tar
drakx-21ba6c674e280bb2e5a8ffaa0c2d117472364c98.tar.gz
drakx-21ba6c674e280bb2e5a8ffaa0c2d117472364c98.tar.bz2
drakx-21ba6c674e280bb2e5a8ffaa0c2d117472364c98.tar.xz
drakx-21ba6c674e280bb2e5a8ffaa0c2d117472364c98.zip
(configure_sound_slots) enable snd-ac97-codec power_save=1 option if installed on laptop (#32213)
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 405e76ed3..23e75eb69 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -374,6 +374,7 @@ sub configure_sound_slots {
$altered ||= $default_driver;
$modules_conf->set_sound_slot("sound-slot-$::i", $_->{driver});
$modules_conf->set_options($_->{driver}, "xbox=1") if $_->{driver} eq "snd_intel8x0" && detect_devices::is_xbox();
+ $modules_conf->set_options('snd-ac97-codec', "power_save=1") if $_->{driver} =~ /^snd/ && detect_devices::isLaptop();
}
} detect_devices::getSoundDevices();
$modules_conf->write if $altered && $::isStandalone;