summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-04-01 15:44:29 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-04-01 15:44:29 +0000
commitd631ff21af34dfe4da843fb7153ddb1fbe7af7bc (patch)
treec7a6b53ff1674777e0fd5ce9a69af849e8129505 /perl-install/harddrake/sound.pm
parent51dbbf65632270ef47e232e5ef2619e353076486 (diff)
downloaddrakx-d631ff21af34dfe4da843fb7153ddb1fbe7af7bc.tar
drakx-d631ff21af34dfe4da843fb7153ddb1fbe7af7bc.tar.gz
drakx-d631ff21af34dfe4da843fb7153ddb1fbe7af7bc.tar.bz2
drakx-d631ff21af34dfe4da843fb7153ddb1fbe7af7bc.tar.xz
drakx-d631ff21af34dfe4da843fb7153ddb1fbe7af7bc.zip
propagate $in where needed
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index eabccd62b..88e337dd9 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -141,7 +141,7 @@ sub get_alternative {
}
sub do_switch {
- my ($old_driver, $new_driver, $index) = @_;
+ my ($in, $old_driver, $new_driver, $index) = @_;
my $wait = $in->wait_message(N("Please wait"), N("Please Wait... Applying the configuration"));
log::explanations("removing old $old_driver\n");
rooted("service sound stop") unless $blacklisted;
@@ -215,7 +215,7 @@ To use alsa, one can either use:
$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($driver, $new_driver, $device->{sound_slot_index});
+ do_switch($in, $driver, $new_driver, $device->{sound_slot_index});
}
} elsif ($driver =~ /^Bad:/) {
$driver =~ s/^Bad://;
@@ -280,7 +280,7 @@ The current driver for your \"%s\" sound card is \"%s\" ", $device->{description
{ label => N("Driver:"), val => \$driver, list => [ category2modules("multimedia/sound") ], type => 'combo', default => $driver, sort =>1, separator => '|' },
]
)) {
- do_switch($old_driver, $driver, $device->{sound_slot_index});
+ do_switch($in, $old_driver, $driver, $device->{sound_slot_index});
goto end;
}
}