diff options
author | Arun Raghavan <ford_prefect@gentoo.org> | 2012-02-12 16:44:54 +0000 |
---|---|---|
committer | Arun Raghavan <ford_prefect@gentoo.org> | 2012-02-12 16:44:54 +0000 |
commit | f2fc2db825e1e5b5933870d0f68c726a3eb5a6d4 (patch) | |
tree | aba99cb2fc36c30015b842466e8df371707600ae /media-plugins/alsa-plugins/files | |
parent | Version bump. Add missing libsoup dependency, bug #399673. (diff) | |
download | gentoo-2-f2fc2db825e1e5b5933870d0f68c726a3eb5a6d4.tar.gz gentoo-2-f2fc2db825e1e5b5933870d0f68c726a3eb5a6d4.tar.bz2 gentoo-2-f2fc2db825e1e5b5933870d0f68c726a3eb5a6d4.zip |
Add new configuration for autoprobing the presence of PulseAudio and setting up the pulse device as default if PA is present. This makes the previous pulse.conf and pulse-alsa.conf unnceessary. Also remove now-irrelevant Also remove now-irrelevant alsa-jack blocker.
(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/alsa-plugins/files')
-rw-r--r-- | media-plugins/alsa-plugins/files/51-pulseaudio-probe.conf | 19 | ||||
-rw-r--r-- | media-plugins/alsa-plugins/files/pulse-default.conf | 10 |
2 files changed, 29 insertions, 0 deletions
diff --git a/media-plugins/alsa-plugins/files/51-pulseaudio-probe.conf b/media-plugins/alsa-plugins/files/51-pulseaudio-probe.conf new file mode 100644 index 000000000000..c2272c85b072 --- /dev/null +++ b/media-plugins/alsa-plugins/files/51-pulseaudio-probe.conf @@ -0,0 +1,19 @@ +# PulseAudio alsa plugin configuration file to set the pulseaudio plugin as +# default output for applications using alsa when pulseaudio is running. + +hook_func.pulse_load_if_running { + lib "/usr/lib/alsa-lib/libasound_module_conf_pulse.so" + func "conf_pulse_hook_load_if_running" +} + +@hooks [ + { + func pulse_load_if_running + files [ + "/usr/share/alsa/pulse-default.conf" + "/etc/asound.conf" + "~/.asoundrc" + ] + errors false + } +] diff --git a/media-plugins/alsa-plugins/files/pulse-default.conf b/media-plugins/alsa-plugins/files/pulse-default.conf new file mode 100644 index 000000000000..8f7cbf29d60c --- /dev/null +++ b/media-plugins/alsa-plugins/files/pulse-default.conf @@ -0,0 +1,10 @@ +# This file is referred to from files in /usr/share/alsa/alsa.conf.d/ in order +# to set up the pulse device as the default if required. + +pcm.!default { + type pulse +} + +ctl.!default { + type pulse +} |