diff options
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r-- | perl-install/harddrake/sound.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 63ca1f0f0..2e5ea7348 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -214,12 +214,12 @@ To use alsa, one can either use: &get_any_driver_entry($in, $driver, $device), ])) { - return if $new_driver eq $driver; - log::explanations("switching audio driver from '$driver' to '$new_driver'\n"); + return if $new_driver eq $device->{current_driver}; + log::explanations("switching audio driver from '" . $device->{current_driver} . "' to '$new_driver'\n"); $in->ask_warn(N("Warning"), N("The old \"%s\" driver is blacklisted.\n It has been reported to oops the kernel on unloading.\n -The new \"%s\" driver'll only be used on next bootstrap.", $driver, $new_driver)) if $blacklisted; - do_switch($in, $driver, $new_driver, $device->{sound_slot_index}); +The new \"%s\" driver'll only be used on next bootstrap.", $device->{current_driver}, $new_driver)) if $blacklisted; + do_switch($in, $device->{current_driver}, $new_driver, $device->{sound_slot_index}); $device->{current_driver} = $new_driver; } } elsif ($driver =~ /^Bad:/) { |