~binli/ubuntu/vivid/pulseaudio/load-extcon-module

« back to all changes in this revision

Viewing changes to .pc/0005-dont-load-cork-music-on-phone.patch/src/daemon/default.pa.in

  • Committer: Bin Li
  • Date: 2016-01-23 15:04:48 UTC
  • Revision ID: bin.li@canonical.com-20160123150448-5ockvw4p5xxntda4
init the 1:6.0-0ubuntu9.15 from silo 12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!@PA_BINARY@ -nF
 
2
#
 
3
# This file is part of PulseAudio.
 
4
#
 
5
# PulseAudio is free software; you can redistribute it and/or modify it
 
6
# under the terms of the GNU Lesser General Public License as published by
 
7
# the Free Software Foundation; either version 2 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# PulseAudio is distributed in the hope that it will be useful, but
 
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
13
# General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU Lesser General Public License
 
16
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
 
17
 
 
18
# This startup script is used only if PulseAudio is started per-user
 
19
# (i.e. not in system mode)
 
20
changequote(`[', `]')dnl Set up m4 quoting
 
21
 
 
22
.nofail
 
23
 
 
24
### Load something into the sample cache
 
25
ifelse(@OS_IS_WIN32@, 1, [dnl
 
26
load-sample x11-bell %WINDIR%\Media\ding.wav
 
27
load-sample-dir-lazy %WINDIR%\Media\*.wav
 
28
], [dnl
 
29
#load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
 
30
#load-sample-lazy pulse-hotplug /usr/share/sounds/freedesktop/stereo/device-added.oga
 
31
#load-sample-lazy pulse-coldplug /usr/share/sounds/freedesktop/stereo/device-added.oga
 
32
#load-sample-lazy pulse-access /usr/share/sounds/freedesktop/stereo/message.oga
 
33
])dnl
 
34
 
 
35
.fail
 
36
 
 
37
### Automatically restore the volume of streams and devices
 
38
load-module module-device-restore
 
39
load-module module-stream-restore
 
40
load-module module-card-restore
 
41
 
 
42
### Automatically augment property information from .desktop files
 
43
### stored in /usr/share/application
 
44
load-module module-augment-properties
 
45
 
 
46
### Should be after module-*-restore but before module-*-detect
 
47
load-module module-switch-on-port-available
 
48
 
 
49
### Load audio drivers statically
 
50
### (it's probably better to not load these drivers manually, but instead
 
51
### use module-udev-detect -- see below -- for doing this automatically)
 
52
ifelse(@HAVE_ALSA@, 1, [dnl
 
53
#load-module module-alsa-sink
 
54
#load-module module-alsa-source device=hw:1,0
 
55
])dnl
 
56
ifelse(@HAVE_OSS_OUTPUT@, 1, [dnl
 
57
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
 
58
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
 
59
])dnl
 
60
ifelse(@HAVE_WAVEOUT@, 1, [dnl
 
61
load-module module-waveout sink_name=output source_name=input
 
62
])dnl
 
63
#load-module module-null-sink
 
64
ifelse(@HAVE_MKFIFO@, 1, [dnl
 
65
#load-module module-pipe-sink
 
66
])dnl
 
67
 
 
68
### Automatically load driver modules depending on the hardware available
 
69
ifelse(@HAVE_UDEV@, 1, [dnl
 
70
.ifexists module-udev-detect@PA_SOEXT@
 
71
load-module module-udev-detect
 
72
.else
 
73
], [dnl
 
74
.ifexists module-detect@PA_SOEXT@
 
75
])dnl
 
76
### Use the static hardware detection module (for systems that lack udev support)
 
77
load-module module-detect
 
78
.endif
 
79
 
 
80
### Automatically connect sink and source if JACK server is present
 
81
.ifexists module-jackdbus-detect@PA_SOEXT@
 
82
.nofail
 
83
load-module module-jackdbus-detect channels=2
 
84
.fail
 
85
.endif
 
86
 
 
87
ifelse(@HAVE_BLUEZ@, 1, [dnl
 
88
### Automatically load driver modules for Bluetooth hardware
 
89
.ifexists module-bluetooth-policy@PA_SOEXT@
 
90
load-module module-bluetooth-policy
 
91
.endif
 
92
 
 
93
.ifexists module-bluetooth-discover@PA_SOEXT@
 
94
load-module module-bluetooth-discover
 
95
.endif
 
96
])dnl
 
97
 
 
98
ifelse(@HAVE_AF_UNIX@, 1, [dnl
 
99
### Load several protocols
 
100
.ifexists module-esound-protocol-unix@PA_SOEXT@
 
101
load-module module-esound-protocol-unix
 
102
.endif
 
103
load-module module-native-protocol-unix
 
104
])dnl
 
105
 
 
106
### Network access (may be configured with paprefs, so leave this commented
 
107
### here if you plan to use paprefs)
 
108
#load-module module-esound-protocol-tcp
 
109
#load-module module-native-protocol-tcp
 
110
ifelse(@HAVE_AVAHI@, 1, [dnl
 
111
#load-module module-zeroconf-publish
 
112
])dnl
 
113
 
 
114
ifelse(@OS_IS_WIN32@, 0, [dnl
 
115
### Load the RTP receiver module (also configured via paprefs, see above)
 
116
#load-module module-rtp-recv
 
117
 
 
118
### Load the RTP sender module (also configured via paprefs, see above)
 
119
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
 
120
#load-module module-rtp-send source=rtp.monitor
 
121
 
 
122
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
 
123
### Please keep in mind that the modules configured by paprefs might conflict with manually
 
124
### loaded modules.
 
125
.ifexists module-gconf@PA_SOEXT@
 
126
.nofail
 
127
load-module module-gconf
 
128
.fail
 
129
.endif
 
130
 
 
131
### Automatically restore the default sink/source when changed by the user
 
132
### during runtime
 
133
### NOTE: This should be loaded as early as possible so that subsequent modules
 
134
### that look up the default sink/source get the right value
 
135
load-module module-default-device-restore
 
136
 
 
137
### Automatically move streams to the default sink if the sink they are
 
138
### connected to dies, similar for sources
 
139
load-module module-rescue-streams
 
140
 
 
141
### Make sure we always have a sink around, even if it is a null sink.
 
142
load-module module-always-sink
 
143
 
 
144
### Honour intended role device property
 
145
load-module module-intended-roles
 
146
 
 
147
### Automatically suspend sinks/sources that become idle for too long
 
148
load-module module-suspend-on-idle
 
149
 
 
150
### If autoexit on idle is enabled we want to make sure we only quit
 
151
### when no local session needs us anymore.
 
152
.ifexists module-console-kit@PA_SOEXT@
 
153
load-module module-console-kit
 
154
.endif
 
155
.ifexists module-systemd-login@PA_SOEXT@
 
156
load-module module-systemd-login
 
157
.endif
 
158
 
 
159
### Enable positioned event sounds
 
160
load-module module-position-event-sounds
 
161
 
 
162
### Cork music/video streams when a phone stream is active
 
163
load-module module-role-cork
 
164
 
 
165
### Modules to allow autoloading of filters (such as echo cancellation)
 
166
### on demand. module-filter-heuristics tries to determine what filters
 
167
### make sense, and module-filter-apply does the heavy-lifting of
 
168
### loading modules and rerouting streams.
 
169
load-module module-filter-heuristics
 
170
load-module module-filter-apply
 
171
])dnl
 
172
 
 
173
ifelse(@HAVE_X11@, 1, [dnl
 
174
# X11 modules should not be started from default.pa so that one daemon
 
175
# can be shared by multiple sessions.
 
176
 
 
177
### Load X11 bell module
 
178
#load-module module-x11-bell sample=x11-bell
 
179
 
 
180
### Register ourselves in the X11 session manager
 
181
#load-module module-x11-xsmp
 
182
 
 
183
### Publish connection data in the X11 root window
 
184
#.ifexists module-x11-publish@PA_SOEXT@
 
185
#.nofail
 
186
#load-module module-x11-publish
 
187
#.fail
 
188
#.endif
 
189
])dnl
 
190
 
 
191
### Make some devices default
 
192
#set-default-sink output
 
193
#set-default-source input