summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-15 14:57:29 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-15 14:57:29 +0000
commit731fbe16e2a84cc6296d36fd470222db7def1c09 (patch)
treef509ebd14c7a02549d1f8dc818af76ba3c97ce31 /perl-install/harddrake
parente173c7f036c9af67d9ed7ce206904883982b90a5 (diff)
downloaddrakx-backup-do-not-use-731fbe16e2a84cc6296d36fd470222db7def1c09.tar
drakx-backup-do-not-use-731fbe16e2a84cc6296d36fd470222db7def1c09.tar.gz
drakx-backup-do-not-use-731fbe16e2a84cc6296d36fd470222db7def1c09.tar.bz2
drakx-backup-do-not-use-731fbe16e2a84cc6296d36fd470222db7def1c09.tar.xz
drakx-backup-do-not-use-731fbe16e2a84cc6296d36fd470222db7def1c09.zip
- factorize snd devices listing in detect_devices::getSoundDevices()
so that each caller is ppc aware - factorize sound slots configuration into harddrake::sound::configure_sound_slots() so that harddrake service will eventually set them at bootstrapping time
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/sound.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index cbf2f3ed0..5a65ff702 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -21,6 +21,7 @@ use run_program;
use modules;
use standalone;
use list_modules;
+use detect_devices;
my $has_nvaudio = -x '/lib/modules/' . c::kernel_version() . '/';
@@ -259,4 +260,12 @@ initlevel 3
")));
}
+
+sub configure_sound_slots {
+ each_index {
+ modules::add_alias("sound-slot-$::i", $_->{driver});
+ } getSoundDevices();
+}
+
+
1;