summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-13 19:30:55 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-13 19:30:55 +0000
commit375fdf699f48e54820ce81497afce7ec1a5be4b2 (patch)
tree76f694aa765096fa0594eb69c9597234f2d6944e
parent75f35fe8f7f79e2f227b3abb46e70bfcb2f5cd3e (diff)
downloaddrakx-375fdf699f48e54820ce81497afce7ec1a5be4b2.tar
drakx-375fdf699f48e54820ce81497afce7ec1a5be4b2.tar.gz
drakx-375fdf699f48e54820ce81497afce7ec1a5be4b2.tar.bz2
drakx-375fdf699f48e54820ce81497afce7ec1a5be4b2.tar.xz
drakx-375fdf699f48e54820ce81497afce7ec1a5be4b2.zip
(switch) make sure that switch alsa-plugins-pulseaudio is installed
when enabling PA routing (#40533)
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/harddrake/sound.pm4
2 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index fe777c2fc..0281bb688 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,7 @@
- draksound:
o advise to log out if PA is enabled/disabled
+ o make sure that switch alsa-plugins-pulseaudio is installed when
+ enabling PA routing (#40533)
Version 10.29.3 - 13 May 2008
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index c0ee46909..ea6736bab 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -330,6 +330,10 @@ sub switch {
set_pulseaudio_routing($is_pulseaudio_enabled && $is_pulseaudio_routing_enabled);
set_5_1_in_pulseaudio($is_5_1_in_pulseaudio_enabled);
set_user_switching($is_user_switching);
+ if ($is_pulseaudio_routing_enabled) {
+ $in->do_pkgs->ensure_is_installed('alsa-plugins-pulseaudio', '/usr/' . (arch() =~ /x86_64/ ? 'lib64' : 'lib')
+ .'/alsa-lib/libasound_module_pcm_pulse.so2');
+ }
if ($old_value ne $is_pulseaudio_enabled) {
require any;
any::ask_for_X_restart($in);