summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-22 10:28:43 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-01-02 14:59:10 +0100
commitfd75d4a8b1ee8805beb0a7627a084d2b5a201b3b (patch)
tree2b1a604d880dd11f622d1d5f8581442f178e390e /perl-install/harddrake
parent5ae47dfaae2d9098ce146b3acf5b105179791c52 (diff)
downloaddrakx-fd75d4a8b1ee8805beb0a7627a084d2b5a201b3b.tar
drakx-fd75d4a8b1ee8805beb0a7627a084d2b5a201b3b.tar.gz
drakx-fd75d4a8b1ee8805beb0a7627a084d2b5a201b3b.tar.bz2
drakx-fd75d4a8b1ee8805beb0a7627a084d2b5a201b3b.tar.xz
drakx-fd75d4a8b1ee8805beb0a7627a084d2b5a201b3b.zip
drop support for switching between OSS <-> ALSA
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r--perl-install/harddrake/sound.pm30
1 files changed, 1 insertions, 29 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 7a9016862..6858d4fe0 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -161,41 +161,13 @@ sub config {
} elsif ($in->ask_from_({ title => N("Sound configuration"),
messages =>
$device->{description} .
- #-PO: here the first %s is either "ALSA",
- #-PO: the second %s is the name of the current driver
- #-PO: and the third %s is the name of the default driver
- N("\n\nYour card currently uses the %s\"%s\" driver (the default driver for your card is \"%s\")", "ALSA ", $driver, $device->{driver}),
- interactive_help => sub {
- N("OSS (Open Sound System) was the first sound API. It's an OS independent sound API (it's available on most UNIX(tm) systems) but it's a very basic and limited API.
-What's more, OSS drivers all reinvent the wheel.
-
-ALSA (Advanced Linux Sound Architecture) is a modularized architecture which
-supports quite a large range of ISA, USB and PCI cards.\n
-It also provides a much higher API than OSS.\n
-To use alsa, one can either use:
-- the old compatibility OSS API
-- the new ALSA API that provides many enhanced features but requires using the ALSA library.
-");
- },
+ "\n\n" . N("Your card uses the %s\"%s\" driver", $driver),
},
[
- if_(@alternative,
- {
- label => N("Driver:"), val => \$new_driver, list => \@alternative, default => $new_driver, sort =>1,
- format => sub { my ($drv) = @_;
- $drv eq 'unknown' ? $drv :
- sprintf(($des{$drv} ? "$des{$drv} (%s [%s])"
- : "%s [%s]"), $drv, $drv =~ /^snd_/ ? 'ALSA' : 'OSS');
- }
- }),
@common,
]))
{
$write_config->();
- return if $new_driver eq $device->{current_driver};
- log::explanations("switching audio driver from '" . $device->{current_driver} . "' to '$new_driver'\n");
- do_switch($in, $modules_conf, $device->{current_driver}, $new_driver, $device->{sound_slot_index});
- $device->{current_driver} = $new_driver;
}
}
end: