diff options
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r-- | perl-install/harddrake/sound.pm | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 16d26c3da..d06dd708d 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -243,25 +243,6 @@ sub set_PA_autospan { my $pulse_config_file = "$::prefix/etc/pulse/daemon.conf"; -sub is_5_1_in_pulseaudio_enabled() { - my ($val) = cat_($pulse_config_file) =~ /^default-sample-channels\s*=\s*(\d+)/m; #^ - $val ||= 2; - $val == 6; -} - -sub set_5_1_in_pulseaudio { - my ($val) = @_; - $val = 'default-sample-channels = ' . ($val ? 6 : 2) . "\n"; - my $done; - substInFile { - if (/^default-sample-channels\s*=/) { - $_ = $val; - $done = 1; - } - } $pulse_config_file; - append_to_file($pulse_config_file, $val) if !$done; -} - sub rooted { run_program::rooted($::prefix, @_) } @@ -319,7 +300,6 @@ sub switch { my $is_pulseaudio_enabled = is_pulseaudio_enabled(); my $is_pulseaudio_glitchfree_enabled = is_pulseaudio_glitchfree_enabled(); - my $is_5_1_in_pulseaudio_enabled = is_5_1_in_pulseaudio_enabled(); my $old_value = $is_pulseaudio_enabled; @@ -327,7 +307,6 @@ sub switch { set_pulseaudio($is_pulseaudio_enabled); set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled); set_PA_autospan($is_pulseaudio_enabled); - set_5_1_in_pulseaudio($is_5_1_in_pulseaudio_enabled); if ($is_pulseaudio_enabled) { my $lib = (arch() =~ /x86_64/ ? 'lib64' : 'lib'); $in->do_pkgs->ensure_is_installed($lib . 'alsa-plugins-pulseaudio', @@ -346,11 +325,6 @@ sub switch { type => 'bool', val => \$is_pulseaudio_enabled, }, { - text => N("Enable 5.1 sound with Pulse Audio"), - type => 'bool', val => \$is_5_1_in_pulseaudio_enabled, - disabled => sub { !$is_pulseaudio_enabled }, - }, - { text => N("Use Glitch-Free mode"), type => 'bool', val => \$is_pulseaudio_glitchfree_enabled, disabled => sub { !$is_pulseaudio_enabled }, |