From 41489d12255281803fe313a2acafa9c0d300f37f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 22 Jan 2004 20:47:46 +0000 Subject: draksound doesn't write the sound alias b/c of wrong comparison with the default driver, thus not configuring not yet configured cards (#6988) --- perl-install/harddrake/sound.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'perl-install/harddrake/sound.pm') 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:/) { -- cgit v1.2.1