diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-17 18:02:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-17 18:02:19 +0000 |
commit | 4501cfbb2e9cde040e891961630d222363fe6031 (patch) | |
tree | beacf49a9a4d09a143ae1148c1b6a48701f9321d /perl-install/harddrake/sound.pm | |
parent | 3164b6e6d5f54cb54f53f599fc58a179159ce38c (diff) | |
download | drakx-4501cfbb2e9cde040e891961630d222363fe6031.tar drakx-4501cfbb2e9cde040e891961630d222363fe6031.tar.gz drakx-4501cfbb2e9cde040e891961630d222363fe6031.tar.bz2 drakx-4501cfbb2e9cde040e891961630d222363fe6031.tar.xz drakx-4501cfbb2e9cde040e891961630d222363fe6031.zip |
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)
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r-- | perl-install/harddrake/sound.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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; |