alsa: Add a proplist to mappings
[pulseaudio-raopUDP/pulseaudio-raop-alac.git] / PROTOCOL
blob01abeed518090d713561ecd40c842af5a0f0c1ce
1 ### v8, implemented by >= 0.8
3 First version supported.
5 ### v9, implemented by >= 0.9.0
7 Reply for PA_COMMAND_CREATE_PLAYBACK_STREAM,
8 PA_COMMAND_CREATE_RECORD_STREAM now returns buffer_attrs that are used:
10 Four new fields in reply of PA_COMMAND_CREATE_PLAYBACK_STREAM:
12    maxlength
13    tlength
14    prebuf
15    minreq
17 Two new fields in reply of PA_COMMAND_CREATE_RECORD_STREAM:
19    maxlength
20    fragsize
22 ### v10, implemented by >= 0.9.5
24 New opcodes:
26  PA_COMMAND_MOVE_SINK_INPUT
27  PA_COMMAND_MOVE_SOURCE_OUTPUT
29 SHM data transfer support
31 ### v11, implemented by >= 0.9.7
33 Reply to to PA_COMMAND_GET_SINK_INPUT_INFO, PA_COMMAND_GET_SINK_INPUT_INFO_LIST gets new field at the end:
35  mute
37 New opcodes:
39  PA_COMMAND_SET_SINK_INPUT_MUTE
40  PA_COMMAND_SUSPEND_SINK
41  PA_COMMAND_SUSPEND_SOURCE
43 ### v12, implemented by >= 0.9.8
45 S32LE, S32BE is now known as sample spec.
47 Gained six new bool fields for PA_COMMAND_CREATE_PLAYBACK_STREAM, PA_COMMAND_CREATE_RECORD_STREAM request at the end:
49  no_remap_channels
50  no_remix_channels
51  fix_format
52  fix_rate
53  fix_channels
54  no_move
55  variable_rate
57 Reply to these opcodes now includes:
59  sample_spec
60  channel_map
61  device_index
62  device_name
63  suspended
65 New opcodes for changing buffer attrs:
67  PA_COMMAND_SET_PLAYBACK_STREAM_BUFFER_ATTR
68  PA_COMMAND_SET_RECORD_STREAM_BUFFER_ATTR
70 New opcodes for changing sampling rate:
72  PA_COMMAND_UPDATE_PLAYBACK_STREAM_SAMPLE_RATE
73  PA_COMMAND_UPDATE_RECORD_STREAM_SAMPLE_RATE
75 New opcodes for notifications:
77  PA_COMMAND_PLAYBACK_STREAM_SUSPENDED
78  PA_COMMAND_CAPTURE_STREAM_SUSPENDED
79  PA_COMMAND_PLAYBACK_STREAM_MOVED
80  PA_COMMAND_CAPTURE_STREAM_MOVED
82 ### v13, implemented by >= 0.9.11
84 New fields for PA_COMMAND_CREATE_PLAYBACK_STREAM, PA_COMMAND_CREATE_RECORD_STREAM request at the end:
86  peak_detect (bool)
87  adjust_latency  (bool)
89 Replace field "name" for PA_COMMAND_CREATE_PLAYBACK_STREAM, PA_COMMAND_CREATE_RECORD_STREAM at the end:
91  proplist
93 Replace field "name" for PA_COMMAND_SET_CLIENT_NAME request at the end:
95  proplist
97 On response of PA_COMMAND_SET_CLIENT_NAME:
99  client_index
101 New proplist field for sink, source, sink input, source output introspection opcodes and at the end:
103  proplist
105 New opcodes for proplist modifications
107   PA_COMMAND_UPDATE_RECORD_STREAM_PROPLIST
108   PA_COMMAND_UPDATE_PLAYBACK_STREAM_PROPLIST
109   PA_COMMAND_UPDATE_CLIENT_PROPLIST
110   PA_COMMAND_REMOVE_RECORD_STREAM_PROPLIST
111   PA_COMMAND_REMOVE_PLAYBACK_STREAM_PROPLIST
112   PA_COMMAND_REMOVE_CLIENT_PROPLIST
114 New field for PA_COMMAND_PLAY_SAMPLE:
116   proplist
118 New field for PA_COMMAND_PLAY_SAMPLE response:
120   idx
122 New field for PA_COMMAND_CREATE_PLAYBACK_STREAM at the end:
124   start_muted
126 Buffer attributes for PA_COMMAND_CREATE_PLAYBACK_STREAM and
127 PA_COMMAND_CREATE_RECORD_STREAM may now be 0 for default values.
129 New field for PA_COMMAND_SET_PLAYBACK_STREAM_BUFFER_ATTR,
130 PA_COMMAND_SET_RECORD_STREAM_BUFFER_ATTR at the end:
132   adjust_latency (bool)
134 new message:
136   PA_COMMAND_STARTED
138 ### v14, implemented by >= 0.9.12
140 new message:
142   PA_COMMAND_EXTENSION
144 PA_COMMAND_CREATE_PLAYBACK_STREAM:
146   bool volume_set at the end
148 PA_COMMAND_CREATE_RECORD_STREAM, PA_COMMAND_CREATE_PLAYBACK_STREAM:
150   bool early_requests at the end
152 New field for PA_COMMAND_SET_PLAYBACK_STREAM_BUFFER_ATTR,
153 PA_COMMAND_SET_RECORD_STREAM_BUFFER_ATTR at the end:
155   early_requests (bool)
157 ### v15, implemented by >= 0.9.15
159 PA_COMMAND_CREATE_PLAYBACK_STREAM
161   bool muted at the end
163 PA_COMMAND_CREATE_PLAYBACK_STREAM, PA_COMMAND_CREATE_RECORD_STREAM:
165   bool dont_inhibit_auto_suspend at the end
167 PA_COMMAND_GET_MODULE_INFO_LIST
169   remove bool auto_unload
170   add proplist at the end
172 new messages:
174   PA_COMMAND_GET_CARD_INFO
175   PA_COMMAND_GET_CARD_INFO_LIST
176   PA_COMMAND_SET_CARD_PROFILE
178   PA_COMMAND_CLIENT_EVENT
179   PA_COMMAND_PLAYBACK_STREAM_EVENT
180   PA_COMMAND_RECORD_STREAM_EVENT
182   PA_COMMAND_PLAYBACK_BUFFER_ATTR_CHANGED
183   PA_COMMAND_RECORD_BUFFER_ATTR_CHANGED
185 ### v16, implemented by >= 0.9.15
187 new messages:
189   PA_COMMAND_SET_SINK_PORT
190   PA_COMMAND_SET_SOURCE_PORT
192 ## v17, implemented by >= 0.9.20
194 new flag at end of CREATE_PLAYBACK_STREAM:
196     bool relative_volume
198 ## v18, implemented by >= 0.9.22
200 new flag at end of CREATE_PLAYBACK_STREAM:
202     bool passthrough
204 ## v19, implemented by >= 0.9.22
206 New flag at the end of sink input and source output introspection data:
208     bool corked
210 ## v20, implemented by >= 1.0
212 Two new flags at the end of sink input introspection data:
214     bool has_volume
215     bool volume_writable
217 ## v21, implemented by >= 1.0
219 Changes for format negotiation in the extended API.
221 New fields PA_COMMAND_CREATE_PLAYBACK_STREAM:
223     uint8_t n_formats
224     format_info format1
225     ...
226     format_info formatn
228 One new field in reply from PA_COMMAND_CREATE_PLAYBACK_STREAM:
230     format_info format
232 New fields in reply from PA_COMMAND_GET_SINK_INFO (and thus
233 PA_COMMAND_GET_SINK_INFO_LIST)
235     uint8_t n_formats
236     format_info format1
237     ...
238     format_info formatn
240 One new field in reply from PA_COMMAND_GET_SINK_INPUT_INFO (and thus
241 PA_COMMAND_GET_SINK_INPUT_INFO_LIST)
243     format_info format
245 ## v22, implemented by >= 1.0
247 New fields PA_COMMAND_CREATE_RECORD_STREAM:
249     uint8_t n_formats
250     format_info format1
251     ...
252     format_info formatn
253     volume
254     bool muted
255     bool volume_set
256     bool muted_set
257     bool relative_volume
258     bool passthrough
260 One new field in reply from PA_COMMAND_CREATE_RECORD_STREAM:
262     format_info format
264 New fields in reply from PA_COMMAND_GET_SOURCE_INFO (and thus
265 PA_COMMAND_GET_SOURCE_INFO_LIST)
267     uint8_t n_formats
268     format_info format1
269     ...
270     format_info formatn
272 Five new fields in reply from PA_COMMAND_GET_SOURCE_OUTPUT_INFO (and thus
273 PA_COMMAND_GET_SOURCE_OUTPUT_INFO_LIST)
275     volume
276     bool mute
277     bool has_volume
278     bool volume_writable
279     format_info format
281 ## v23, implemented by >= 1.0
283 New field in PA_COMMAND_UNDERFLOW:
285     int64_t index
287 ## v24, implemented by >= 2.0
289 New field in all commands that send/receive port introspection data
290 (PA_COMMAND_GET_(SOURCE|SINK)_INFO,
291 PA_COMMAND_GET_(SOURCE|SINK)_INFO_LIST):
293     uint32_t available
295 The field is added once for every port.
297 ## v25, implemented by >= 2.0
299 When port availability changes, send a subscription event for the
300 owning card.
302 ## v26, implemented by >= 2.0
304 In reply from PA_COMMAND_GET_CARD_INFO (and thus
305 PA_COMMAND_GET_CARD_INFO_LIST), the following is added:
307     uint32_t n_ports
309 ...followed by n_ports extended port entries, which look like this:
311     string name
312     string description
313     uint32_t priority
314     uint32_t available
315     uint8_t direction
316     proplist
317     uint32_t n_profiles
318     string profile_name_1
319     ...
320     string profile_name_n
322 Profile names must match earlier sent profile names for the same card.
324 ## v27, implemented by >= 3.0
326 New opcodes:
327     PA_COMMAND_SET_PORT_LATENCY_OFFSET
329 New field in the card commands that send/receive port introspection data
330 PA_COMMAND_GET_CARD_INFO(_LIST)):
332     int64_t latency_offset
334 The field is added once for every port.
336 #### If you just changed the protocol, read this
337 ## module-tunnel depends on the sink/source/sink-input/source-input protocol
338 ## internals, so if you changed these, you might have broken module-tunnel.
339 ## Don't forget to test module-tunnel-{source,sink} when pushing protocol
340 ## changes.