summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-17 18:02:19 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-17 18:02:19 +0000
commit4501cfbb2e9cde040e891961630d222363fe6031 (patch)
treebeacf49a9a4d09a143ae1148c1b6a48701f9321d /perl-install/harddrake
parent3164b6e6d5f54cb54f53f599fc58a179159ce38c (diff)
downloaddrakx-backup-do-not-use-4501cfbb2e9cde040e891961630d222363fe6031.tar
drakx-backup-do-not-use-4501cfbb2e9cde040e891961630d222363fe6031.tar.gz
drakx-backup-do-not-use-4501cfbb2e9cde040e891961630d222363fe6031.tar.bz2
drakx-backup-do-not-use-4501cfbb2e9cde040e891961630d222363fe6031.tar.xz
drakx-backup-do-not-use-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')
-rw-r--r--perl-install/harddrake/sound.pm3
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;