blob: 731bb7c75fc493d2aa72c31dd24979bdd858b76d [file] [log] [blame]
Mikhail Naganov51a7e132022-01-15 01:14:46 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!-- Copyright (C) 2020 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<xs:schema version="2.0"
17 elementFormDefault="qualified"
18 attributeFormDefault="unqualified"
19 xmlns:xs="http://www.w3.org/2001/XMLSchema">
20 <!-- List the config versions supported by audio policy. -->
21 <xs:simpleType name="version">
22 <xs:restriction base="xs:decimal">
23 <xs:enumeration value="7.0"/>
24 <xs:enumeration value="7.1"/>
25 </xs:restriction>
26 </xs:simpleType>
27 <xs:simpleType name="halVersion">
28 <xs:annotation>
29 <xs:documentation xml:lang="en">
30 Version of the interface the hal implements. Note that this
31 relates to legacy HAL API versions since HIDL APIs are versioned
32 using other mechanisms.
33 </xs:documentation>
34 </xs:annotation>
35 <xs:restriction base="xs:decimal">
36 <!-- List of HAL versions supported by the framework. -->
37 <xs:enumeration value="2.0"/>
38 <xs:enumeration value="3.0"/>
39 </xs:restriction>
40 </xs:simpleType>
41 <xs:element name="audioPolicyConfiguration">
42 <xs:complexType>
43 <xs:sequence>
44 <xs:element name="globalConfiguration" type="globalConfiguration"/>
45 <xs:element name="modules" type="modules" maxOccurs="unbounded"/>
46 <xs:element name="volumes" type="volumes" maxOccurs="unbounded"/>
47 <xs:element name="surroundSound" type="surroundSound" minOccurs="0" />
48 </xs:sequence>
49 <xs:attribute name="version" type="version"/>
50 </xs:complexType>
51 <xs:key name="moduleNameKey">
52 <xs:selector xpath="modules/module"/>
53 <xs:field xpath="@name"/>
54 </xs:key>
55 <xs:unique name="volumeTargetUniqueness">
56 <xs:selector xpath="volumes/volume"/>
57 <xs:field xpath="@stream"/>
58 <xs:field xpath="@deviceCategory"/>
59 </xs:unique>
60 <xs:key name="volumeCurveNameKey">
61 <xs:selector xpath="volumes/reference"/>
62 <xs:field xpath="@name"/>
63 </xs:key>
64 <xs:keyref name="volumeCurveRef" refer="volumeCurveNameKey">
65 <xs:selector xpath="volumes/volume"/>
66 <xs:field xpath="@ref"/>
67 </xs:keyref>
68 </xs:element>
69 <xs:complexType name="globalConfiguration">
70 <xs:attribute name="speaker_drc_enabled" type="xs:boolean" use="required"/>
71 <xs:attribute name="call_screen_mode_supported" type="xs:boolean" use="optional"/>
72 <xs:attribute name="engine_library" type="engineSuffix" use="optional"/>
73 </xs:complexType>
74 <xs:complexType name="modules">
75 <xs:annotation>
76 <xs:documentation xml:lang="en">
77 There should be one section per audio HW module present on the platform.
78 Each <module/> contains two mandatory tags: “halVersion” and “name”.
79 The module "name" is the same as in previous .conf file.
80 Each module must contain the following sections:
81 - <devicePorts/>: a list of device descriptors for all
82 input and output devices accessible via this module.
83 This contains both permanently attached devices and removable devices.
84 - <mixPorts/>: listing all output and input streams exposed by the audio HAL
85 - <routes/>: list of possible connections between input
86 and output devices or between stream and devices.
87 A <route/> is defined by a set of 3 attributes:
88 -"type": mux|mix means all sources are mutual exclusive (mux) or can be mixed (mix)
89 -"sink": the sink involved in this route
90 -"sources": all the sources than can be connected to the sink via this route
91 - <attachedDevices/>: permanently attached devices.
92 The attachedDevices section is a list of devices names.
93 Their names correspond to device names defined in "devicePorts" section.
94 - <defaultOutputDevice/> is the device to be used when no policy rule applies
95 </xs:documentation>
96 </xs:annotation>
97 <xs:sequence>
98 <xs:element name="module" maxOccurs="unbounded">
99 <xs:complexType>
100 <xs:sequence>
101 <xs:element name="attachedDevices" type="attachedDevices" minOccurs="0">
102 <xs:unique name="attachedDevicesUniqueness">
103 <xs:selector xpath="item"/>
104 <xs:field xpath="."/>
105 </xs:unique>
106 </xs:element>
107 <xs:element name="defaultOutputDevice" type="xs:token" minOccurs="0"/>
108 <xs:element name="mixPorts" type="mixPorts" minOccurs="0"/>
109 <xs:element name="devicePorts" type="devicePorts" minOccurs="0"/>
110 <xs:element name="routes" type="routes" minOccurs="0"/>
111 </xs:sequence>
112 <xs:attribute name="name" type="xs:string" use="required"/>
113 <xs:attribute name="halVersion" type="halVersion" use="required"/>
114 </xs:complexType>
115 <xs:unique name="mixPortNameUniqueness">
116 <xs:selector xpath="mixPorts/mixPort"/>
117 <xs:field xpath="@name"/>
118 </xs:unique>
119 <xs:key name="devicePortNameKey">
120 <xs:selector xpath="devicePorts/devicePort"/>
121 <xs:field xpath="@tagName"/>
122 </xs:key>
123 <xs:unique name="devicePortUniqueness">
124 <xs:selector xpath="devicePorts/devicePort"/>
125 <xs:field xpath="@type"/>
126 <xs:field xpath="@address"/>
127 </xs:unique>
128 <xs:keyref name="defaultOutputDeviceRef" refer="devicePortNameKey">
129 <xs:selector xpath="defaultOutputDevice"/>
130 <xs:field xpath="."/>
131 </xs:keyref>
132 <xs:keyref name="attachedDeviceRef" refer="devicePortNameKey">
133 <xs:selector xpath="attachedDevices/item"/>
134 <xs:field xpath="."/>
135 </xs:keyref>
136 <!-- The following 3 constraints try to make sure each sink port
137 is reference in one an only one route. -->
138 <xs:key name="routeSinkKey">
139 <!-- predicate [@type='sink'] does not work in xsd 1.0 -->
140 <xs:selector xpath="devicePorts/devicePort|mixPorts/mixPort"/>
141 <xs:field xpath="@tagName|@name"/>
142 </xs:key>
143 <xs:keyref name="routeSinkRef" refer="routeSinkKey">
144 <xs:selector xpath="routes/route"/>
145 <xs:field xpath="@sink"/>
146 </xs:keyref>
147 <xs:unique name="routeUniqueness">
148 <xs:selector xpath="routes/route"/>
149 <xs:field xpath="@sink"/>
150 </xs:unique>
151 </xs:element>
152 </xs:sequence>
153 </xs:complexType>
154 <xs:complexType name="attachedDevices">
155 <xs:sequence>
156 <xs:element name="item" type="xs:token" minOccurs="0" maxOccurs="unbounded"/>
157 </xs:sequence>
158 </xs:complexType>
159 <xs:simpleType name="audioInOutFlag">
160 <xs:annotation>
161 <xs:documentation xml:lang="en">
162 The flags indicate suggested stream attributes supported by the profile.
163 </xs:documentation>
164 </xs:annotation>
165 <xs:restriction base="xs:string">
166 <xs:enumeration value="AUDIO_OUTPUT_FLAG_DIRECT" />
167 <xs:enumeration value="AUDIO_OUTPUT_FLAG_PRIMARY" />
168 <xs:enumeration value="AUDIO_OUTPUT_FLAG_FAST" />
169 <xs:enumeration value="AUDIO_OUTPUT_FLAG_DEEP_BUFFER" />
170 <xs:enumeration value="AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD" />
171 <xs:enumeration value="AUDIO_OUTPUT_FLAG_NON_BLOCKING" />
172 <xs:enumeration value="AUDIO_OUTPUT_FLAG_HW_AV_SYNC" />
173 <xs:enumeration value="AUDIO_OUTPUT_FLAG_TTS" />
174 <xs:enumeration value="AUDIO_OUTPUT_FLAG_RAW" />
175 <xs:enumeration value="AUDIO_OUTPUT_FLAG_SYNC" />
176 <xs:enumeration value="AUDIO_OUTPUT_FLAG_IEC958_NONAUDIO" />
177 <xs:enumeration value="AUDIO_OUTPUT_FLAG_DIRECT_PCM" />
178 <xs:enumeration value="AUDIO_OUTPUT_FLAG_MMAP_NOIRQ" />
179 <xs:enumeration value="AUDIO_OUTPUT_FLAG_VOIP_RX" />
180 <xs:enumeration value="AUDIO_OUTPUT_FLAG_INCALL_MUSIC" />
181 <xs:enumeration value="AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD" />
182 <xs:enumeration value="AUDIO_INPUT_FLAG_FAST" />
183 <xs:enumeration value="AUDIO_INPUT_FLAG_HW_HOTWORD" />
184 <xs:enumeration value="AUDIO_INPUT_FLAG_RAW" />
185 <xs:enumeration value="AUDIO_INPUT_FLAG_SYNC" />
186 <xs:enumeration value="AUDIO_INPUT_FLAG_MMAP_NOIRQ" />
187 <xs:enumeration value="AUDIO_INPUT_FLAG_VOIP_TX" />
188 <xs:enumeration value="AUDIO_INPUT_FLAG_HW_AV_SYNC" />
189 <xs:enumeration value="AUDIO_INPUT_FLAG_DIRECT" />
190 </xs:restriction>
191 </xs:simpleType>
192 <xs:simpleType name="audioInOutFlags">
193 <xs:list itemType="audioInOutFlag" />
194 </xs:simpleType>
195 <xs:simpleType name="role">
196 <xs:restriction base="xs:string">
197 <xs:enumeration value="sink"/>
198 <xs:enumeration value="source"/>
199 </xs:restriction>
200 </xs:simpleType>
201 <xs:complexType name="mixPorts">
202 <xs:sequence>
203 <xs:element name="mixPort" minOccurs="0" maxOccurs="unbounded">
204 <xs:complexType>
205 <xs:sequence>
206 <xs:element name="profile" type="profile" minOccurs="0" maxOccurs="unbounded"/>
207 <xs:element name="gains" type="gains" minOccurs="0"/>
208 </xs:sequence>
209 <xs:attribute name="name" type="xs:token" use="required"/>
210 <xs:attribute name="role" type="role" use="required"/>
211 <xs:attribute name="flags" type="audioInOutFlags"/>
212 <xs:attribute name="maxOpenCount" type="xs:unsignedInt"/>
213 <xs:attribute name="maxActiveCount" type="xs:unsignedInt"/>
214 <xs:attribute name="preferredUsage" type="audioUsageList">
215 <xs:annotation>
216 <xs:documentation xml:lang="en">
217 When choosing the mixPort of an audio track, the audioPolicy
218 first considers the mixPorts with a preferredUsage including
219 the track AudioUsage preferred .
220 If non support the track format, the other mixPorts are considered.
221 Eg: a <mixPort preferredUsage="AUDIO_USAGE_MEDIA" /> will receive
222 the audio of all apps playing with a MEDIA usage.
223 It may receive audio from ALARM if there are no audio compatible
224 <mixPort preferredUsage="AUDIO_USAGE_ALARM" />.
225 </xs:documentation>
226 </xs:annotation>
227 </xs:attribute>
228 </xs:complexType>
229 <xs:unique name="mixPortProfileUniqueness">
230 <xs:selector xpath="profile"/>
231 <xs:field xpath="format"/>
232 <xs:field xpath="samplingRate"/>
233 <xs:field xpath="channelMasks"/>
234 </xs:unique>
235 <xs:unique name="mixPortGainUniqueness">
236 <xs:selector xpath="gains/gain"/>
237 <xs:field xpath="@name"/>
238 </xs:unique>
239 </xs:element>
240 </xs:sequence>
241 </xs:complexType>
242 <xs:simpleType name="audioDevice">
243 <xs:restriction base="xs:string">
244 <xs:enumeration value="AUDIO_DEVICE_NONE"/>
245
246 <xs:enumeration value="AUDIO_DEVICE_OUT_EARPIECE"/>
247 <xs:enumeration value="AUDIO_DEVICE_OUT_SPEAKER"/>
248 <xs:enumeration value="AUDIO_DEVICE_OUT_WIRED_HEADSET"/>
249 <xs:enumeration value="AUDIO_DEVICE_OUT_WIRED_HEADPHONE"/>
250 <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_SCO"/>
251 <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET"/>
252 <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT"/>
253 <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP"/>
254 <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES"/>
255 <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER"/>
256 <xs:enumeration value="AUDIO_DEVICE_OUT_HDMI"/>
257 <xs:enumeration value="AUDIO_DEVICE_OUT_HDMI_EARC"/>
258 <xs:enumeration value="AUDIO_DEVICE_OUT_AUX_DIGITAL"/>
259 <xs:enumeration value="AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET"/>
260 <xs:enumeration value="AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET"/>
261 <xs:enumeration value="AUDIO_DEVICE_OUT_USB_ACCESSORY"/>
262 <xs:enumeration value="AUDIO_DEVICE_OUT_USB_DEVICE"/>
263 <xs:enumeration value="AUDIO_DEVICE_OUT_REMOTE_SUBMIX"/>
264 <xs:enumeration value="AUDIO_DEVICE_OUT_TELEPHONY_TX"/>
265 <xs:enumeration value="AUDIO_DEVICE_OUT_LINE"/>
266 <xs:enumeration value="AUDIO_DEVICE_OUT_HDMI_ARC"/>
267 <xs:enumeration value="AUDIO_DEVICE_OUT_SPDIF"/>
268 <xs:enumeration value="AUDIO_DEVICE_OUT_FM"/>
269 <xs:enumeration value="AUDIO_DEVICE_OUT_AUX_LINE"/>
270 <xs:enumeration value="AUDIO_DEVICE_OUT_SPEAKER_SAFE"/>
271 <xs:enumeration value="AUDIO_DEVICE_OUT_IP"/>
272 <xs:enumeration value="AUDIO_DEVICE_OUT_BUS"/>
273 <xs:enumeration value="AUDIO_DEVICE_OUT_PROXY"/>
274 <xs:enumeration value="AUDIO_DEVICE_OUT_USB_HEADSET"/>
275 <xs:enumeration value="AUDIO_DEVICE_OUT_HEARING_AID"/>
276 <xs:enumeration value="AUDIO_DEVICE_OUT_ECHO_CANCELLER"/>
277 <xs:enumeration value="AUDIO_DEVICE_OUT_BLE_HEADSET"/>
278 <xs:enumeration value="AUDIO_DEVICE_OUT_BLE_SPEAKER"/>
279 <xs:enumeration value="AUDIO_DEVICE_OUT_DEFAULT"/>
280 <xs:enumeration value="AUDIO_DEVICE_OUT_STUB"/>
281
282 <xs:enumeration value="AUDIO_DEVICE_IN_COMMUNICATION"/>
283 <xs:enumeration value="AUDIO_DEVICE_IN_AMBIENT"/>
284 <xs:enumeration value="AUDIO_DEVICE_IN_BUILTIN_MIC"/>
285 <xs:enumeration value="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET"/>
286 <xs:enumeration value="AUDIO_DEVICE_IN_WIRED_HEADSET"/>
287 <xs:enumeration value="AUDIO_DEVICE_IN_HDMI"/>
288 <xs:enumeration value="AUDIO_DEVICE_IN_AUX_DIGITAL"/>
289 <xs:enumeration value="AUDIO_DEVICE_IN_VOICE_CALL"/>
290 <xs:enumeration value="AUDIO_DEVICE_IN_TELEPHONY_RX"/>
291 <xs:enumeration value="AUDIO_DEVICE_IN_BACK_MIC"/>
292 <xs:enumeration value="AUDIO_DEVICE_IN_REMOTE_SUBMIX"/>
293 <xs:enumeration value="AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET"/>
294 <xs:enumeration value="AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET"/>
295 <xs:enumeration value="AUDIO_DEVICE_IN_USB_ACCESSORY"/>
296 <xs:enumeration value="AUDIO_DEVICE_IN_USB_DEVICE"/>
297 <xs:enumeration value="AUDIO_DEVICE_IN_FM_TUNER"/>
298 <xs:enumeration value="AUDIO_DEVICE_IN_TV_TUNER"/>
299 <xs:enumeration value="AUDIO_DEVICE_IN_LINE"/>
300 <xs:enumeration value="AUDIO_DEVICE_IN_SPDIF"/>
301 <xs:enumeration value="AUDIO_DEVICE_IN_BLUETOOTH_A2DP"/>
302 <xs:enumeration value="AUDIO_DEVICE_IN_LOOPBACK"/>
303 <xs:enumeration value="AUDIO_DEVICE_IN_IP"/>
304 <xs:enumeration value="AUDIO_DEVICE_IN_BUS"/>
305 <xs:enumeration value="AUDIO_DEVICE_IN_PROXY"/>
306 <xs:enumeration value="AUDIO_DEVICE_IN_USB_HEADSET"/>
307 <xs:enumeration value="AUDIO_DEVICE_IN_BLUETOOTH_BLE"/>
308 <xs:enumeration value="AUDIO_DEVICE_IN_HDMI_ARC"/>
309 <xs:enumeration value="AUDIO_DEVICE_IN_HDMI_EARC"/>
310 <xs:enumeration value="AUDIO_DEVICE_IN_ECHO_REFERENCE"/>
311 <xs:enumeration value="AUDIO_DEVICE_IN_BLE_HEADSET"/>
312 <xs:enumeration value="AUDIO_DEVICE_IN_DEFAULT"/>
313 <xs:enumeration value="AUDIO_DEVICE_IN_STUB"/>
314 </xs:restriction>
315 </xs:simpleType>
316 <xs:simpleType name="vendorExtension">
317 <!-- Vendor extension names must be prefixed by "VX_" to distinguish them from
318 AOSP values. Vendors must namespace their names to avoid conflicts. The
319 namespace part must only use capital latin characters and decimal digits and
320 consist of at least 3 characters. The part of the extension name after the
321 namespace may in addition include underscores. Example for a hypothetical
322 Google virtual reality device:
323
324 <devicePort tagName="VR" type="VX_GOOGLE_VR" role="sink" />
325 -->
326 <xs:restriction base="xs:string">
327 <xs:pattern value="VX_[A-Z0-9]{3,}_[_A-Z0-9]+"/>
328 </xs:restriction>
329 </xs:simpleType>
330 <xs:simpleType name="extendableAudioDevice">
331 <xs:union memberTypes="audioDevice vendorExtension"/>
332 </xs:simpleType>
333 <xs:simpleType name="audioFormat">
334 <xs:restriction base="xs:string">
335 <xs:enumeration value="AUDIO_FORMAT_DEFAULT" />
336 <xs:enumeration value="AUDIO_FORMAT_PCM_16_BIT" />
337 <xs:enumeration value="AUDIO_FORMAT_PCM_8_BIT"/>
338 <xs:enumeration value="AUDIO_FORMAT_PCM_32_BIT"/>
339 <xs:enumeration value="AUDIO_FORMAT_PCM_8_24_BIT"/>
340 <xs:enumeration value="AUDIO_FORMAT_PCM_FLOAT"/>
341 <xs:enumeration value="AUDIO_FORMAT_PCM_24_BIT_PACKED"/>
342 <xs:enumeration value="AUDIO_FORMAT_MP3"/>
343 <xs:enumeration value="AUDIO_FORMAT_AMR_NB"/>
344 <xs:enumeration value="AUDIO_FORMAT_AMR_WB"/>
345 <xs:enumeration value="AUDIO_FORMAT_AAC"/>
346 <xs:enumeration value="AUDIO_FORMAT_AAC_MAIN"/>
347 <xs:enumeration value="AUDIO_FORMAT_AAC_LC"/>
348 <xs:enumeration value="AUDIO_FORMAT_AAC_SSR"/>
349 <xs:enumeration value="AUDIO_FORMAT_AAC_LTP"/>
350 <xs:enumeration value="AUDIO_FORMAT_AAC_HE_V1"/>
351 <xs:enumeration value="AUDIO_FORMAT_AAC_SCALABLE"/>
352 <xs:enumeration value="AUDIO_FORMAT_AAC_ERLC"/>
353 <xs:enumeration value="AUDIO_FORMAT_AAC_LD"/>
354 <xs:enumeration value="AUDIO_FORMAT_AAC_HE_V2"/>
355 <xs:enumeration value="AUDIO_FORMAT_AAC_ELD"/>
356 <xs:enumeration value="AUDIO_FORMAT_AAC_XHE"/>
357 <xs:enumeration value="AUDIO_FORMAT_HE_AAC_V1"/>
358 <xs:enumeration value="AUDIO_FORMAT_HE_AAC_V2"/>
359 <xs:enumeration value="AUDIO_FORMAT_VORBIS"/>
360 <xs:enumeration value="AUDIO_FORMAT_OPUS"/>
361 <xs:enumeration value="AUDIO_FORMAT_AC3"/>
362 <xs:enumeration value="AUDIO_FORMAT_E_AC3"/>
363 <xs:enumeration value="AUDIO_FORMAT_E_AC3_JOC"/>
364 <xs:enumeration value="AUDIO_FORMAT_DTS"/>
365 <xs:enumeration value="AUDIO_FORMAT_DTS_HD"/>
366 <xs:enumeration value="AUDIO_FORMAT_IEC61937"/>
367 <xs:enumeration value="AUDIO_FORMAT_DOLBY_TRUEHD"/>
368 <xs:enumeration value="AUDIO_FORMAT_EVRC"/>
369 <xs:enumeration value="AUDIO_FORMAT_EVRCB"/>
370 <xs:enumeration value="AUDIO_FORMAT_EVRCWB"/>
371 <xs:enumeration value="AUDIO_FORMAT_EVRCNW"/>
372 <xs:enumeration value="AUDIO_FORMAT_AAC_ADIF"/>
373 <xs:enumeration value="AUDIO_FORMAT_WMA"/>
374 <xs:enumeration value="AUDIO_FORMAT_WMA_PRO"/>
375 <xs:enumeration value="AUDIO_FORMAT_AMR_WB_PLUS"/>
376 <xs:enumeration value="AUDIO_FORMAT_MP2"/>
377 <xs:enumeration value="AUDIO_FORMAT_QCELP"/>
378 <xs:enumeration value="AUDIO_FORMAT_DSD"/>
379 <xs:enumeration value="AUDIO_FORMAT_FLAC"/>
380 <xs:enumeration value="AUDIO_FORMAT_ALAC"/>
381 <xs:enumeration value="AUDIO_FORMAT_APE"/>
382 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS"/>
383 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_MAIN"/>
384 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_LC"/>
385 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_SSR"/>
386 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_LTP"/>
387 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_HE_V1"/>
388 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_SCALABLE"/>
389 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_ERLC"/>
390 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_LD"/>
391 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_HE_V2"/>
392 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_ELD"/>
393 <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_XHE"/>
394 <xs:enumeration value="AUDIO_FORMAT_SBC"/>
395 <xs:enumeration value="AUDIO_FORMAT_APTX"/>
396 <xs:enumeration value="AUDIO_FORMAT_APTX_HD"/>
397 <xs:enumeration value="AUDIO_FORMAT_AC4"/>
398 <xs:enumeration value="AUDIO_FORMAT_LDAC"/>
399 <xs:enumeration value="AUDIO_FORMAT_MAT"/>
400 <xs:enumeration value="AUDIO_FORMAT_MAT_1_0"/>
401 <xs:enumeration value="AUDIO_FORMAT_MAT_2_0"/>
402 <xs:enumeration value="AUDIO_FORMAT_MAT_2_1"/>
403 <xs:enumeration value="AUDIO_FORMAT_AAC_LATM"/>
404 <xs:enumeration value="AUDIO_FORMAT_AAC_LATM_LC"/>
405 <xs:enumeration value="AUDIO_FORMAT_AAC_LATM_HE_V1"/>
406 <xs:enumeration value="AUDIO_FORMAT_AAC_LATM_HE_V2"/>
407 <xs:enumeration value="AUDIO_FORMAT_CELT"/>
408 <xs:enumeration value="AUDIO_FORMAT_APTX_ADAPTIVE"/>
409 <xs:enumeration value="AUDIO_FORMAT_LHDC"/>
410 <xs:enumeration value="AUDIO_FORMAT_LHDC_LL"/>
411 <xs:enumeration value="AUDIO_FORMAT_APTX_TWSP"/>
412 <xs:enumeration value="AUDIO_FORMAT_LC3"/>
413 <xs:enumeration value="AUDIO_FORMAT_MPEGH_BL_L3"/>
414 <xs:enumeration value="AUDIO_FORMAT_MPEGH_BL_L4"/>
415 <xs:enumeration value="AUDIO_FORMAT_MPEGH_LC_L3"/>
416 <xs:enumeration value="AUDIO_FORMAT_MPEGH_LC_L4"/>
417 <xs:enumeration value="AUDIO_FORMAT_IEC60958"/>
418 <xs:enumeration value="AUDIO_FORMAT_DTS_UHD"/>
419 <xs:enumeration value="AUDIO_FORMAT_DRA"/>
420 </xs:restriction>
421 </xs:simpleType>
422 <xs:simpleType name="extendableAudioFormat">
423 <xs:union memberTypes="audioFormat vendorExtension"/>
424 </xs:simpleType>
425 <xs:simpleType name="audioUsage">
426 <xs:annotation>
427 <xs:documentation xml:lang="en">
428 Audio usage specifies the intended use case for the sound being played.
429 Please consult frameworks/base/media/java/android/media/AudioAttributes.java
430 for the description of each value.
431 </xs:documentation>
432 </xs:annotation>
433 <xs:restriction base="xs:string">
434 <xs:enumeration value="AUDIO_USAGE_UNKNOWN" />
435 <xs:enumeration value="AUDIO_USAGE_MEDIA" />
436 <xs:enumeration value="AUDIO_USAGE_VOICE_COMMUNICATION" />
437 <xs:enumeration value="AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING" />
438 <xs:enumeration value="AUDIO_USAGE_ALARM" />
439 <xs:enumeration value="AUDIO_USAGE_NOTIFICATION" />
440 <xs:enumeration value="AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE" />
441 <xs:enumeration value="AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY" />
442 <xs:enumeration value="AUDIO_USAGE_ASSISTANCE_NAVIGATION_GUIDANCE" />
443 <xs:enumeration value="AUDIO_USAGE_ASSISTANCE_SONIFICATION" />
444 <xs:enumeration value="AUDIO_USAGE_GAME" />
445 <xs:enumeration value="AUDIO_USAGE_VIRTUAL_SOURCE" />
446 <xs:enumeration value="AUDIO_USAGE_ASSISTANT" />
447 <xs:enumeration value="AUDIO_USAGE_CALL_ASSISTANT" />
448 <xs:enumeration value="AUDIO_USAGE_EMERGENCY" />
449 <xs:enumeration value="AUDIO_USAGE_SAFETY" />
450 <xs:enumeration value="AUDIO_USAGE_VEHICLE_STATUS" />
451 <xs:enumeration value="AUDIO_USAGE_ANNOUNCEMENT" />
452 </xs:restriction>
453 </xs:simpleType>
454 <xs:simpleType name="audioUsageList">
455 <xs:list itemType="audioUsage"/>
456 </xs:simpleType>
457 <xs:simpleType name="audioContentType">
458 <xs:annotation>
459 <xs:documentation xml:lang="en">
460 Audio content type expresses the general category of the content.
461 Please consult frameworks/base/media/java/android/media/AudioAttributes.java
462 for the description of each value.
463 </xs:documentation>
464 </xs:annotation>
465 <xs:restriction base="xs:string">
466 <xs:enumeration value="AUDIO_CONTENT_TYPE_UNKNOWN"/>
467 <xs:enumeration value="AUDIO_CONTENT_TYPE_SPEECH"/>
468 <xs:enumeration value="AUDIO_CONTENT_TYPE_MUSIC"/>
469 <xs:enumeration value="AUDIO_CONTENT_TYPE_MOVIE"/>
470 <xs:enumeration value="AUDIO_CONTENT_TYPE_SONIFICATION"/>
471 </xs:restriction>
472 </xs:simpleType>
473 <xs:simpleType name="samplingRates">
474 <xs:list itemType="xs:nonNegativeInteger" />
475 </xs:simpleType>
476 <xs:simpleType name="audioChannelMask">
477 <xs:annotation>
478 <xs:documentation xml:lang="en">
479 Audio channel mask specifies presence of particular channels.
480 There are two representations:
481 - representation position (traditional discrete channel specification,
482 e.g. "left", "right");
483 - indexed (this is similar to "tracks" in audio mixing, channels
484 are represented using numbers).
485 </xs:documentation>
486 </xs:annotation>
487 <xs:restriction base="xs:string">
488 <xs:enumeration value="AUDIO_CHANNEL_NONE"/>
489 <xs:enumeration value="AUDIO_CHANNEL_OUT_MONO"/>
490 <xs:enumeration value="AUDIO_CHANNEL_OUT_STEREO"/>
491 <xs:enumeration value="AUDIO_CHANNEL_OUT_2POINT1"/>
492 <xs:enumeration value="AUDIO_CHANNEL_OUT_TRI"/>
493 <xs:enumeration value="AUDIO_CHANNEL_OUT_TRI_BACK"/>
494 <xs:enumeration value="AUDIO_CHANNEL_OUT_3POINT1"/>
495 <xs:enumeration value="AUDIO_CHANNEL_OUT_2POINT0POINT2"/>
496 <xs:enumeration value="AUDIO_CHANNEL_OUT_2POINT1POINT2"/>
497 <xs:enumeration value="AUDIO_CHANNEL_OUT_3POINT0POINT2"/>
498 <xs:enumeration value="AUDIO_CHANNEL_OUT_3POINT1POINT2"/>
499 <xs:enumeration value="AUDIO_CHANNEL_OUT_QUAD"/>
500 <xs:enumeration value="AUDIO_CHANNEL_OUT_QUAD_BACK"/>
501 <xs:enumeration value="AUDIO_CHANNEL_OUT_QUAD_SIDE"/>
502 <xs:enumeration value="AUDIO_CHANNEL_OUT_SURROUND"/>
503 <xs:enumeration value="AUDIO_CHANNEL_OUT_PENTA"/>
504 <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1"/>
505 <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1_BACK"/>
506 <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1_SIDE"/>
507 <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1POINT2"/>
508 <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1POINT4"/>
509 <xs:enumeration value="AUDIO_CHANNEL_OUT_6POINT1"/>
510 <xs:enumeration value="AUDIO_CHANNEL_OUT_7POINT1"/>
511 <xs:enumeration value="AUDIO_CHANNEL_OUT_7POINT1POINT2"/>
512 <xs:enumeration value="AUDIO_CHANNEL_OUT_7POINT1POINT4"/>
513 <xs:enumeration value="AUDIO_CHANNEL_OUT_13POINT_360RA"/>
514 <xs:enumeration value="AUDIO_CHANNEL_OUT_22POINT2"/>
515 <xs:enumeration value="AUDIO_CHANNEL_OUT_MONO_HAPTIC_A"/>
516 <xs:enumeration value="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_A"/>
517 <xs:enumeration value="AUDIO_CHANNEL_OUT_HAPTIC_AB"/>
518 <xs:enumeration value="AUDIO_CHANNEL_OUT_MONO_HAPTIC_AB"/>
519 <xs:enumeration value="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_AB"/>
520 <xs:enumeration value="AUDIO_CHANNEL_IN_MONO"/>
521 <xs:enumeration value="AUDIO_CHANNEL_IN_STEREO"/>
522 <xs:enumeration value="AUDIO_CHANNEL_IN_FRONT_BACK"/>
523 <xs:enumeration value="AUDIO_CHANNEL_IN_6"/>
524 <xs:enumeration value="AUDIO_CHANNEL_IN_2POINT0POINT2"/>
525 <xs:enumeration value="AUDIO_CHANNEL_IN_2POINT1POINT2"/>
526 <xs:enumeration value="AUDIO_CHANNEL_IN_3POINT0POINT2"/>
527 <xs:enumeration value="AUDIO_CHANNEL_IN_3POINT1POINT2"/>
528 <xs:enumeration value="AUDIO_CHANNEL_IN_5POINT1"/>
529 <xs:enumeration value="AUDIO_CHANNEL_IN_VOICE_UPLINK_MONO"/>
530 <xs:enumeration value="AUDIO_CHANNEL_IN_VOICE_DNLINK_MONO"/>
531 <xs:enumeration value="AUDIO_CHANNEL_IN_VOICE_CALL_MONO"/>
532 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_1"/>
533 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_2"/>
534 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_3"/>
535 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_4"/>
536 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_5"/>
537 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_6"/>
538 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_7"/>
539 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_8"/>
540 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_9"/>
541 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_10"/>
542 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_11"/>
543 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_12"/>
544 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_13"/>
545 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_14"/>
546 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_15"/>
547 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_16"/>
548 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_17"/>
549 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_18"/>
550 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_19"/>
551 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_20"/>
552 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_21"/>
553 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_22"/>
554 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_23"/>
555 <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_24"/>
556 </xs:restriction>
557 </xs:simpleType>
558 <xs:simpleType name="channelMasks">
559 <xs:list itemType="audioChannelMask" />
560 </xs:simpleType>
561 <xs:simpleType name="audioEncapsulationType">
562 <xs:restriction base="xs:string">
563 <xs:enumeration value="AUDIO_ENCAPSULATION_TYPE_NONE"/>
564 <xs:enumeration value="AUDIO_ENCAPSULATION_TYPE_IEC61937"/>
565 </xs:restriction>
566 </xs:simpleType>
567 <xs:complexType name="profile">
568 <xs:attribute name="name" type="xs:token" use="optional"/>
569 <xs:attribute name="format" type="extendableAudioFormat" use="optional"/>
570 <xs:attribute name="samplingRates" type="samplingRates" use="optional"/>
571 <xs:attribute name="channelMasks" type="channelMasks" use="optional"/>
572 <xs:attribute name="encapsulationType" type="audioEncapsulationType" use="optional"/>
573 </xs:complexType>
574 <xs:simpleType name="audioGainMode">
575 <xs:restriction base="xs:string">
576 <xs:enumeration value="AUDIO_GAIN_MODE_JOINT"/>
577 <xs:enumeration value="AUDIO_GAIN_MODE_CHANNELS"/>
578 <xs:enumeration value="AUDIO_GAIN_MODE_RAMP"/>
579 </xs:restriction>
580 </xs:simpleType>
581 <xs:simpleType name="audioGainModeMaskUnrestricted">
582 <xs:list itemType="audioGainMode" />
583 </xs:simpleType>
584 <xs:simpleType name='audioGainModeMask'>
585 <xs:restriction base='audioGainModeMaskUnrestricted'>
586 <xs:minLength value='1' />
587 </xs:restriction>
588 </xs:simpleType>
589 <xs:complexType name="gains">
590 <xs:sequence>
591 <xs:element name="gain" minOccurs="0" maxOccurs="unbounded">
592 <xs:complexType>
593 <xs:attribute name="name" type="xs:token" use="required"/>
594 <xs:attribute name="mode" type="audioGainModeMask" use="required"/>
595 <xs:attribute name="channel_mask" type="audioChannelMask" use="optional"/>
596 <xs:attribute name="minValueMB" type="xs:int" use="optional"/>
597 <xs:attribute name="maxValueMB" type="xs:int" use="optional"/>
598 <xs:attribute name="defaultValueMB" type="xs:int" use="optional"/>
599 <xs:attribute name="stepValueMB" type="xs:int" use="optional"/>
600 <xs:attribute name="minRampMs" type="xs:int" use="optional"/>
601 <xs:attribute name="maxRampMs" type="xs:int" use="optional"/>
602 <xs:attribute name="useForVolume" type="xs:boolean" use="optional"/>
603 </xs:complexType>
604 </xs:element>
605 </xs:sequence>
606 </xs:complexType>
607 <xs:complexType name="devicePorts">
608 <xs:sequence>
609 <xs:element name="devicePort" minOccurs="0" maxOccurs="unbounded">
610 <xs:complexType>
611 <xs:sequence>
612 <xs:element name="profile" type="profile" minOccurs="0" maxOccurs="unbounded"/>
613 <xs:element name="gains" type="gains" minOccurs="0"/>
614 </xs:sequence>
615 <xs:attribute name="tagName" type="xs:token" use="required"/>
616 <xs:attribute name="type" type="extendableAudioDevice" use="required"/>
617 <xs:attribute name="role" type="role" use="required"/>
618 <xs:attribute name="address" type="xs:string" use="optional" default=""/>
619 <!-- Note that XSD 1.0 can not check that a type only has one default. -->
620 <xs:attribute name="default" type="xs:boolean" use="optional">
621 <xs:annotation>
622 <xs:documentation xml:lang="en">
623 The default device will be used if multiple have the same type
624 and no explicit route request exists for a specific device of
625 that type.
626 </xs:documentation>
627 </xs:annotation>
628 </xs:attribute>
629 <xs:attribute name="encodedFormats" type="audioFormatsList" use="optional"
630 default="" />
631 </xs:complexType>
632 <xs:unique name="devicePortProfileUniqueness">
633 <xs:selector xpath="profile"/>
634 <xs:field xpath="format"/>
635 <xs:field xpath="samplingRate"/>
636 <xs:field xpath="channelMasks"/>
637 </xs:unique>
638 <xs:unique name="devicePortGainUniqueness">
639 <xs:selector xpath="gains/gain"/>
640 <xs:field xpath="@name"/>
641 </xs:unique>
642 </xs:element>
643 </xs:sequence>
644 </xs:complexType>
645 <xs:simpleType name="mixType">
646 <xs:restriction base="xs:string">
647 <xs:enumeration value="mix"/>
648 <xs:enumeration value="mux"/>
649 </xs:restriction>
650 </xs:simpleType>
651 <xs:complexType name="routes">
652 <xs:sequence>
653 <xs:element name="route" minOccurs="0" maxOccurs="unbounded">
654 <xs:annotation>
655 <xs:documentation xml:lang="en">
656 List all available sources for a given sink.
657 </xs:documentation>
658 </xs:annotation>
659 <xs:complexType>
660 <xs:attribute name="type" type="mixType" use="required"/>
661 <xs:attribute name="sink" type="xs:string" use="required"/>
662 <xs:attribute name="sources" type="xs:string" use="required"/>
663 </xs:complexType>
664 </xs:element>
665 </xs:sequence>
666 </xs:complexType>
667 <xs:complexType name="volumes">
668 <xs:sequence>
669 <xs:element name="volume" type="volume" minOccurs="0" maxOccurs="unbounded"/>
670 <xs:element name="reference" type="reference" minOccurs="0" maxOccurs="unbounded">
671 </xs:element>
672 </xs:sequence>
673 </xs:complexType>
674 <!-- TODO: Always require a ref for better xsd validations.
675 Currently a volume could have no points nor ref
676 as it can not be forbidden by xsd 1.0.-->
677 <xs:simpleType name="volumePoint">
678 <xs:annotation>
679 <xs:documentation xml:lang="en">
680 Comma separated pair of number.
681 The fist one is the framework level (between 0 and 100).
682 The second one is the volume to send to the HAL.
683 The framework will interpolate volumes not specified.
684 Their MUST be at least 2 points specified.
685 </xs:documentation>
686 </xs:annotation>
687 <xs:restriction base="xs:string">
688 <xs:pattern value="([0-9]{1,2}|100),-?[0-9]+"/>
689 </xs:restriction>
690 </xs:simpleType>
691 <xs:simpleType name="audioStreamType">
692 <xs:annotation>
693 <xs:documentation xml:lang="en">
694 Audio stream type describing the intended use case of a stream.
695 Please consult frameworks/base/media/java/android/media/AudioSystem.java
696 for the description of each value.
697 </xs:documentation>
698 </xs:annotation>
699 <xs:restriction base="xs:string">
700 <xs:enumeration value="AUDIO_STREAM_VOICE_CALL"/>
701 <xs:enumeration value="AUDIO_STREAM_SYSTEM"/>
702 <xs:enumeration value="AUDIO_STREAM_RING"/>
703 <xs:enumeration value="AUDIO_STREAM_MUSIC"/>
704 <xs:enumeration value="AUDIO_STREAM_ALARM"/>
705 <xs:enumeration value="AUDIO_STREAM_NOTIFICATION"/>
706 <xs:enumeration value="AUDIO_STREAM_BLUETOOTH_SCO"/>
707 <xs:enumeration value="AUDIO_STREAM_ENFORCED_AUDIBLE"/>
708 <xs:enumeration value="AUDIO_STREAM_DTMF"/>
709 <xs:enumeration value="AUDIO_STREAM_TTS"/>
710 <xs:enumeration value="AUDIO_STREAM_ACCESSIBILITY"/>
711 <xs:enumeration value="AUDIO_STREAM_ASSISTANT"/>
712 <xs:enumeration value="AUDIO_STREAM_REROUTING"/>
713 <xs:enumeration value="AUDIO_STREAM_PATCH"/>
714 <xs:enumeration value="AUDIO_STREAM_CALL_ASSISTANT"/>
715 </xs:restriction>
716 </xs:simpleType>
717 <xs:simpleType name="audioSource">
718 <xs:annotation>
719 <xs:documentation xml:lang="en">
720 An audio source defines the intended use case for the sound being recorded.
721 Please consult frameworks/base/media/java/android/media/MediaRecorder.java
722 for the description of each value.
723 </xs:documentation>
724 </xs:annotation>
725 <xs:restriction base="xs:string">
726 <xs:enumeration value="AUDIO_SOURCE_DEFAULT"/>
727 <xs:enumeration value="AUDIO_SOURCE_MIC"/>
728 <xs:enumeration value="AUDIO_SOURCE_VOICE_UPLINK"/>
729 <xs:enumeration value="AUDIO_SOURCE_VOICE_DOWNLINK"/>
730 <xs:enumeration value="AUDIO_SOURCE_VOICE_CALL"/>
731 <xs:enumeration value="AUDIO_SOURCE_CAMCORDER"/>
732 <xs:enumeration value="AUDIO_SOURCE_VOICE_RECOGNITION"/>
733 <xs:enumeration value="AUDIO_SOURCE_VOICE_COMMUNICATION"/>
734 <xs:enumeration value="AUDIO_SOURCE_REMOTE_SUBMIX"/>
735 <xs:enumeration value="AUDIO_SOURCE_UNPROCESSED"/>
736 <xs:enumeration value="AUDIO_SOURCE_VOICE_PERFORMANCE"/>
737 <xs:enumeration value="AUDIO_SOURCE_ECHO_REFERENCE"/>
738 <xs:enumeration value="AUDIO_SOURCE_FM_TUNER"/>
739 <xs:enumeration value="AUDIO_SOURCE_HOTWORD"/>
740 </xs:restriction>
741 </xs:simpleType>
742 <!-- Enum values of device_category from Volume.h. -->
743 <xs:simpleType name="deviceCategory">
744 <xs:restriction base="xs:string">
745 <xs:enumeration value="DEVICE_CATEGORY_HEADSET"/>
746 <xs:enumeration value="DEVICE_CATEGORY_SPEAKER"/>
747 <xs:enumeration value="DEVICE_CATEGORY_EARPIECE"/>
748 <xs:enumeration value="DEVICE_CATEGORY_EXT_MEDIA"/>
749 <xs:enumeration value="DEVICE_CATEGORY_HEARING_AID"/>
750 </xs:restriction>
751 </xs:simpleType>
752 <xs:complexType name="volume">
753 <xs:annotation>
754 <xs:documentation xml:lang="en">
755 Volume section defines a volume curve for a given use case and device category.
756 It contains a list of points of this curve expressing the attenuation in Millibels
757 for a given volume index from 0 to 100.
758 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
759 <point>0,-9600</point>
760 <point>100,0</point>
761 </volume>
762
763 It may also reference a reference/@name to avoid duplicating curves.
764 <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"
765 ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
766 <reference name="DEFAULT_MEDIA_VOLUME_CURVE">
767 <point>0,-9600</point>
768 <point>100,0</point>
769 </reference>
770 </xs:documentation>
771 </xs:annotation>
772 <xs:sequence>
773 <xs:element name="point" type="volumePoint" minOccurs="0" maxOccurs="unbounded"/>
774 </xs:sequence>
775 <xs:attribute name="stream" type="audioStreamType"/>
776 <xs:attribute name="deviceCategory" type="deviceCategory"/>
777 <xs:attribute name="ref" type="xs:token" use="optional"/>
778 </xs:complexType>
779 <xs:complexType name="reference">
780 <xs:sequence>
781 <xs:element name="point" type="volumePoint" minOccurs="2" maxOccurs="unbounded"/>
782 </xs:sequence>
783 <xs:attribute name="name" type="xs:token" use="required"/>
784 </xs:complexType>
785 <xs:complexType name="surroundSound">
786 <xs:annotation>
787 <xs:documentation xml:lang="en">
788 Surround Sound section provides configuration related to handling of
789 multi-channel formats.
790 </xs:documentation>
791 </xs:annotation>
792 <xs:sequence>
793 <xs:element name="formats" type="surroundFormats"/>
794 </xs:sequence>
795 </xs:complexType>
796 <xs:simpleType name="audioFormatsList">
797 <xs:list itemType="extendableAudioFormat" />
798 </xs:simpleType>
799 <xs:complexType name="surroundFormats">
800 <xs:sequence>
801 <xs:element name="format" minOccurs="0" maxOccurs="unbounded">
802 <xs:complexType>
803 <xs:attribute name="name" type="extendableAudioFormat" use="required"/>
804 <xs:attribute name="subformats" type="audioFormatsList" />
805 </xs:complexType>
806 </xs:element>
807 </xs:sequence>
808 </xs:complexType>
809 <xs:simpleType name="engineSuffix">
810 <xs:restriction base="xs:string">
811 <xs:enumeration value="default"/>
812 <xs:enumeration value="configurable"/>
813 </xs:restriction>
814 </xs:simpleType>
815</xs:schema>