diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-29 09:29:48 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-29 09:46:53 +0100 |
commit | a3892591195934279d9be528e9662cad5e4142b9 (patch) | |
tree | 47f0cca3a52b74c86965d3326b714cbbc55f91ab /perl-install/harddrake | |
parent | 074db254db6b6c39807f308ddc1b4f7b7d22648c (diff) | |
download | drakx-a3892591195934279d9be528e9662cad5e4142b9.tar drakx-a3892591195934279d9be528e9662cad5e4142b9.tar.gz drakx-a3892591195934279d9be528e9662cad5e4142b9.tar.bz2 drakx-a3892591195934279d9be528e9662cad5e4142b9.tar.xz drakx-a3892591195934279d9be528e9662cad5e4142b9.zip |
(get_alternative) kill it since we no more can choose between OSS & ALSA
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r-- | perl-install/harddrake/sound.pm | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 44de4ef02..6a48c302e 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -99,10 +99,6 @@ sub load { modules::load_and_configure($modules_conf, $name) if $::isStandalone; } -sub get_alternative { - "unknown"; -} - sub do_switch { my ($in, $modules_conf, $old_driver, $new_driver, $index) = @_; return if $old_driver eq $new_driver; @@ -132,9 +128,9 @@ sub switch { my ($in, $modules_conf, $device) = @_; my $driver = $device->{current_driver} || $device->{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}; + my @alternative; + if ($driver ne $device->{driver}) { + push @alternative, $device->{driver}; } if (@alternative) { my $new_driver = $driver; @@ -342,7 +338,7 @@ sub configure_sound_slots { my $altered = 0; each_index { my $default_driver = $modules_conf->get_alias("sound-slot-$::i"); - if (!member($default_driver, get_alternative($_->{driver}), $_->{driver})) { + if (!member($default_driver, $_->{driver})) { $altered ||= $default_driver; configure_one_sound_slot($modules_conf, $::i, $_->{driver}); } |