summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
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;