summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-08-23 18:29:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-08-23 18:29:59 +0000
commitd3d794f15f003a9ddd3e8834d6f75f8bce893d8a (patch)
tree4722cbba5d7eedfa80cd5fcca9810fdf818fed9a
parent4347d5e68c708a24fbed61f04505e43f2120765b (diff)
downloaddrakx-backup-do-not-use-d3d794f15f003a9ddd3e8834d6f75f8bce893d8a.tar
drakx-backup-do-not-use-d3d794f15f003a9ddd3e8834d6f75f8bce893d8a.tar.gz
drakx-backup-do-not-use-d3d794f15f003a9ddd3e8834d6f75f8bce893d8a.tar.bz2
drakx-backup-do-not-use-d3d794f15f003a9ddd3e8834d6f75f8bce893d8a.tar.xz
drakx-backup-do-not-use-d3d794f15f003a9ddd3e8834d6f75f8bce893d8a.zip
check that alternative is unknown, not the current driver, before
saying that there's no alternative. anyway, our only caller cannot get there's with a current unknown driver since he only try listed/know drivers ....
-rw-r--r--perl-install/harddrake/sound.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 3bdfb7697..dc25af4fb 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -149,10 +149,9 @@ sub switch {
my ($in, $device) = @_;
my $driver = $device->{driver};
my $alternative = get_alternative($driver);
-# $alternative = [ "i810_audio", "snd-intel8x0"];
if ($alternative) {
my $new_driver = $alternative->[0];
- if ($driver eq "unknown") {
+ if ($new_driver eq "unknown") {
$in->ask_warn(_("No alternative driver"),
_("There's no known OSS/ALSA alternative driver for your sound card (%s)",
$device->{description}));
@@ -173,7 +172,6 @@ sub switch {
$in->ask_warn(_("No known driver"),
_("There's no known driver for your sound card (%s)",
$device->{description}));
- } elsif (is_listed($driver)) {
} else {
$in->ask_warn(_("Unkown driver"),
_("The \"%s\" driver for your sound card is unlisted\n