summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-15 15:28:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-15 15:28:41 +0000
commit6bea210c5f780d53ef7049548fa4d649dd832408 (patch)
tree42193f0707be9c9420533124012ec05f24f2759b
parent0b23f8f736399d2e7a66baa903f8255c6e96200d (diff)
downloaddrakx-backup-do-not-use-6bea210c5f780d53ef7049548fa4d649dd832408.tar
drakx-backup-do-not-use-6bea210c5f780d53ef7049548fa4d649dd832408.tar.gz
drakx-backup-do-not-use-6bea210c5f780d53ef7049548fa4d649dd832408.tar.bz2
drakx-backup-do-not-use-6bea210c5f780d53ef7049548fa4d649dd832408.tar.xz
drakx-backup-do-not-use-6bea210c5f780d53ef7049548fa4d649dd832408.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
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index ab87cadc3..c891bca71 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -368,6 +368,10 @@ sub getCPUs {
@cpus;
}
+sub getSoundDevices {
+ (arch() =~ /ppc/ ? \&modules::load_category : \&modules::probe_category)->('multimedia/sound');
+}
+
sub getSerialModem {
my ($modem, $mouse) = @_;
$mouse ||= {};