diff options
author | Colin Guthrie <colin@mageia.org> | 2011-05-18 22:35:28 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-05-18 22:35:28 +0000 |
commit | a863d327c10397278f9ac94cbb6a58aa0b3a8775 (patch) | |
tree | f7f29a26ef3c74386c32bb3e7ee2288f381f0a84 /perl-install/harddrake | |
parent | 20d8ad3bb76c17af3d61999643ca4ceb10ef4360 (diff) | |
download | drakx-a863d327c10397278f9ac94cbb6a58aa0b3a8775.tar drakx-a863d327c10397278f9ac94cbb6a58aa0b3a8775.tar.gz drakx-a863d327c10397278f9ac94cbb6a58aa0b3a8775.tar.bz2 drakx-a863d327c10397278f9ac94cbb6a58aa0b3a8775.tar.xz drakx-a863d327c10397278f9ac94cbb6a58aa0b3a8775.zip |
draksound: Remove the 'Enable user switching...' option as it relies on HAL which is deprecated
Diffstat (limited to 'perl-install/harddrake')
-rw-r--r-- | perl-install/harddrake/sound.pm | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 3871e30e8..16d26c3da 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -181,25 +181,6 @@ our %oss2alsa = my @blacklist = qw(cs46xx cs4281); my $blacklisted = 0; -sub is_user_switching_enabled() { - my $output = run_program::get_stdout('polkit-action', '--action', - 'org.freedesktop.hal.device-access.sound'); - my ($val) = $output =~ /default_inactive: (.*)/; - to_bool($val eq 'no'); -} - -sub set_user_switching { - my ($val) = @_; - if ($val) { - run_program::get_stdout('polkit-action', '--reset-defaults', - 'org.freedesktop.hal.device-access.sound'); - } else { - run_program::get_stdout('polkit-action', '--set-defaults-inactive', - 'org.freedesktop.hal.device-access.sound', 'yes'); - } -} - - sub is_pulseaudio_enabled() { my $soundprofile = common::read_alternative('soundprofile'); $soundprofile =~ /pulse$/; @@ -339,7 +320,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 $is_user_switching = is_user_switching_enabled(); my $old_value = $is_pulseaudio_enabled; @@ -348,7 +328,6 @@ sub switch { set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled); set_PA_autospan($is_pulseaudio_enabled); set_5_1_in_pulseaudio($is_5_1_in_pulseaudio_enabled); - set_user_switching($is_user_switching); if ($is_pulseaudio_enabled) { my $lib = (arch() =~ /x86_64/ ? 'lib64' : 'lib'); $in->do_pkgs->ensure_is_installed($lib . 'alsa-plugins-pulseaudio', @@ -372,10 +351,6 @@ sub switch { disabled => sub { !$is_pulseaudio_enabled }, }, { - text => N("Enable user switching for audio applications"), - type => 'bool', val => \$is_user_switching, - }, - { text => N("Use Glitch-Free mode"), type => 'bool', val => \$is_pulseaudio_glitchfree_enabled, disabled => sub { !$is_pulseaudio_enabled }, |