summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/sound.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 44b437ffc..fa140b193 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -216,7 +216,7 @@ sub switch {
my $driver = $device->{current_driver} || $device->{driver};
foreach (@blacklist) { $blacklisted = 1 if $driver eq $_ }
- my @alternative = @{get_alternative($driver)};
+ my @alternative = $driver ne 'unknown' ? @{get_alternative($driver)} : ();
unless ($driver eq $device->{driver} || member($device->{driver}, @alternative)) {
push @alternative, @{get_alternative($device->{driver})}, $device->{driver};
}