summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-12 12:22:21 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-12 12:22:21 +0000
commit9b42df99da58a4d877f65c11f8c3d8f40fce3f18 (patch)
tree909a69f22b8ab038810c29403dfb16ffaac2a84e /perl-install/harddrake
parentbcec1ffee9cba962ebf17be8094045a58bca4680 (diff)
downloaddrakx-backup-do-not-use-9b42df99da58a4d877f65c11f8c3d8f40fce3f18.tar
drakx-backup-do-not-use-9b42df99da58a4d877f65c11f8c3d8f40fce3f18.tar.gz
drakx-backup-do-not-use-9b42df99da58a4d877f65c11f8c3d8f40fce3f18.tar.bz2
drakx-backup-do-not-use-9b42df99da58a4d877f65c11f8c3d8f40fce3f18.tar.xz
drakx-backup-do-not-use-9b42df99da58a4d877f65c11f8c3d8f40fce3f18.zip
(get_alternative,switch) prevent stupid & useless "driver for your
sound card is unlisted" thus there's no more need to: - list OSS/ALSA alternatives if none - sync draksound with list_modules
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/sound.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index ac7ff6368..8ce19880a 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -193,7 +193,7 @@ sub load {
sub get_alternative {
my ($driver) = @_;
my $list = $alsa2oss{$driver} || $oss2alsa{$driver};
- $list ? @$list : undef;
+ $list ? @$list : "unknown";
}
sub do_switch {
@@ -299,10 +299,6 @@ The new \"%s\" driver will only be used on next bootstrap.", $device->{current_d
N("There's no known driver for your sound card (%s)",
$device->{description}),
[ get_any_driver_entry($in, $modules_conf, $driver, $device) ]);
- } else {
- $in->ask_warn(N("Unknown driver"),
- N("Error: The \"%s\" driver for your sound card is unlisted",
- $driver));
}
end:
}