From 9b42df99da58a4d877f65c11f8c3d8f40fce3f18 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 12 Sep 2007 12:22:21 +0000 Subject: (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 --- perl-install/harddrake/sound.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'perl-install/harddrake/sound.pm') 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: } -- cgit v1.2.1