xref: /OK3568_Linux_fs/buildroot/package/pulseaudio/default.pa (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/usr/bin/pulseaudio -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
21.fail
22
23### Automatically restore the volume of streams and devices
24load-module module-device-restore
25load-module module-stream-restore
26load-module module-card-restore
27
28### Automatically augment property information from .desktop files
29### stored in /usr/share/application
30load-module module-augment-properties
31
32### Should be after module-*-restore but before module-*-detect
33load-module module-switch-on-port-available
34
35### Load audio drivers statically
36### (it's probably better to not load these drivers manually, but instead
37### use module-udev-detect -- see below -- for doing this automatically)
38#load-module module-alsa-sink
39#load-module module-alsa-source device=hw:1,0
40#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
41#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
42#load-module module-null-sink
43#load-module module-pipe-sink
44
45### Automatically load driver modules depending on the hardware available
46.ifexists module-udev-detect.so
47load-module module-udev-detect tsched=0
48.else
49### Use the static hardware detection module (for systems that lack udev support)
50load-module module-detect
51.endif
52
53### Automatically connect sink and source if JACK server is present
54.ifexists module-jackdbus-detect.so
55.nofail
56load-module module-jackdbus-detect channels=2
57.fail
58.endif
59
60### Automatically load driver modules for Bluetooth hardware
61.ifexists module-bluetooth-policy.so
62load-module module-bluetooth-policy
63.endif
64
65.ifexists module-bluetooth-discover.so
66load-module module-bluetooth-discover
67.endif
68
69### Load several protocols
70.ifexists module-esound-protocol-unix.so
71load-module module-esound-protocol-unix
72.endif
73load-module module-native-protocol-unix auth-anonymous=1 socket=/tmp/pulse-socket
74
75### Network access (may be configured with paprefs, so leave this commented
76### here if you plan to use paprefs)
77#load-module module-esound-protocol-tcp
78#load-module module-native-protocol-tcp
79#load-module module-zeroconf-publish
80
81### Load the RTP receiver module (also configured via paprefs, see above)
82#load-module module-rtp-recv
83
84### Load the RTP sender module (also configured via paprefs, see above)
85#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
86#load-module module-rtp-send source=rtp.monitor
87
88### Load additional modules from GSettings. This can be configured with the paprefs tool.
89### Please keep in mind that the modules configured by paprefs might conflict with manually
90### loaded modules.
91.ifexists module-gsettings.so
92.nofail
93load-module module-gsettings
94.fail
95.endif
96
97
98### Automatically restore the default sink/source when changed by the user
99### during runtime
100### NOTE: This should be loaded as early as possible so that subsequent modules
101### that look up the default sink/source get the right value
102load-module module-default-device-restore
103
104### Automatically move streams to the default sink if the sink they are
105### connected to dies, similar for sources
106#load-module module-rescue-streams
107
108### Make sure we always have a sink around, even if it is a null sink.
109load-module module-always-sink
110
111### Honour intended role device property
112load-module module-intended-roles
113
114### Automatically suspend sinks/sources that become idle for too long
115load-module module-suspend-on-idle
116
117### If autoexit on idle is enabled we want to make sure we only quit
118### when no local session needs us anymore.
119.ifexists module-console-kit.so
120load-module module-console-kit
121.endif
122.ifexists module-systemd-login.so
123load-module module-systemd-login
124.endif
125
126### Enable positioned event sounds
127load-module module-position-event-sounds
128
129### Cork music/video streams when a phone stream is active
130load-module module-role-cork
131
132### Modules to allow autoloading of filters (such as echo cancellation)
133### on demand. module-filter-heuristics tries to determine what filters
134### make sense, and module-filter-apply does the heavy-lifting of
135### loading modules and rerouting streams.
136load-module module-filter-heuristics
137load-module module-filter-apply
138
139### Make some devices default
140#set-default-sink output
141#set-default-source input
142