From 4501cfbb2e9cde040e891961630d222363fe6031 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 17 Mar 2004 18:02:19 +0000 Subject: When current driver doesn't match current sound card (because sound card has been replaced for example), draksound allows to choose the driver between current driver and its alternatives, but does not propose default driver and alternatives for current sound card. So available drivers don't match current sound card (olivier blin, #8501) --- perl-install/harddrake/sound.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/harddrake/sound.pm') diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 9efb2de8b..641b94457 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -173,6 +173,9 @@ sub switch { foreach (@blacklist) { $blacklisted = 1 if $driver eq $_ } my $alternative = get_alternative($driver); + unless ($driver eq $device->{driver} or member($device->{driver}, @$alternative)) { + push @$alternative, @{get_alternative($device->{driver})}, $device->{driver} + } if ($alternative) { my $new_driver = $driver; push @$alternative, $driver; -- cgit v1.2.1