configuration: IVI additions to default config files.
[profile/ivi/pulseaudio-panda.git] / src / daemon / system.pa.in
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, write to the Free Software Foundation,
17 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
18
19 # This startup script is used only if PulseAudio is started in system
20 # mode.
21 changequote(`[', `]')dnl Set up m4 quoting
22
23 ### Automatically load driver modules depending on the hardware available
24 ifelse(@HAVE_UDEV@, 1, [dnl
25 .ifexists module-udev-detect@PA_SOEXT@
26 load-module module-udev-detect
27 .else
28 ], @HAVE_HAL@, 1, [dnl
29 .ifexists module-hal-detect@PA_SOEXT@
30 load-module module-hal-detect
31 .else
32 ], [dnl
33 .ifexists module-detect@PA_SOEXT@
34 ])dnl
35 ### Use the static hardware detection module (for systems that lack udev/hal support)
36 load-module module-detect
37 .endif
38
39 ifelse(@HAVE_BLUEZ@, 1, [dnl
40 ### Automatically load driver modules for Bluetooth hardware
41 .ifexists module-bluetooth-discover@PA_SOEXT@
42 load-module module-bluetooth-discover
43 .endif
44 ])dnl
45
46
47 ### Load several protocols
48 .ifexists module-esound-protocol-unix@PA_SOEXT@
49 load-module module-esound-protocol-unix
50 .endif
51 load-module module-native-protocol-unix
52
53 ### Do not automatically restore the volume of streams and devices
54 #load-module module-stream-restore
55 #load-module module-device-restore
56
57 ### Automatically restore the default sink/source when changed by the user
58 ### during runtime
59 ### NOTE: This should be loaded as early as possible so that subsequent modules
60 ### that look up the default sink/source get the right value
61 load-module module-default-device-restore
62
63 .ifexists module-dbus-protocol@PA_SOEXT@
64 ### If you want to allow TCP connections, set access to "remote" or "local,remote".
65 load-module module-dbus-protocol access=local
66 .endif
67
68 ### Automatically move streams to the default sink if the sink they are
69 ### connected to dies, similar for sources
70 load-module module-rescue-streams
71
72 ### Make sure we always have a sink around, even if it is a null sink.
73 load-module module-always-sink
74
75 ### Automatically suspend sinks/sources that become idle for too long
76 load-module module-suspend-on-idle
77
78 ### Enable positioned event sounds
79 load-module module-position-event-sounds
80
81 ### Load the Murphy IVI module if it exists
82 .ifexists module-murphy-ivi@PA_SOEXT@
83 load-module module-murphy-ivi dbus_bus_type=system
84 .endif