From 375fdf699f48e54820ce81497afce7ec1a5be4b2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 13 May 2008 19:30:55 +0000 Subject: (switch) make sure that switch alsa-plugins-pulseaudio is installed when enabling PA routing (#40533) --- perl-install/NEWS | 2 ++ perl-install/harddrake/sound.pm | 4 ++++ 2 files changed, 6 insertions(+) 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); -- cgit v1.2.1