• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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_OUTPUT_FLAG_SPATIALIZER" />
183            <xs:enumeration value="AUDIO_OUTPUT_FLAG_ULTRASOUND" />
184            <xs:enumeration value="AUDIO_OUTPUT_FLAG_BIT_PERFECT" />
185            <xs:enumeration value="AUDIO_INPUT_FLAG_FAST" />
186            <xs:enumeration value="AUDIO_INPUT_FLAG_HW_HOTWORD" />
187            <xs:enumeration value="AUDIO_INPUT_FLAG_RAW" />
188            <xs:enumeration value="AUDIO_INPUT_FLAG_SYNC" />
189            <xs:enumeration value="AUDIO_INPUT_FLAG_MMAP_NOIRQ" />
190            <xs:enumeration value="AUDIO_INPUT_FLAG_VOIP_TX" />
191            <xs:enumeration value="AUDIO_INPUT_FLAG_HW_AV_SYNC" />
192            <xs:enumeration value="AUDIO_INPUT_FLAG_DIRECT" />
193            <xs:enumeration value="AUDIO_INPUT_FLAG_ULTRASOUND" />
194            <xs:enumeration value="AUDIO_INPUT_FLAG_HOTWORD_TAP" />
195            <xs:enumeration value="AUDIO_INPUT_FLAG_HW_LOOKBACK" />
196        </xs:restriction>
197    </xs:simpleType>
198    <xs:simpleType name="audioInOutFlags">
199        <xs:list itemType="audioInOutFlag" />
200    </xs:simpleType>
201    <xs:simpleType name="role">
202        <xs:restriction base="xs:string">
203            <xs:enumeration value="sink"/>
204            <xs:enumeration value="source"/>
205        </xs:restriction>
206    </xs:simpleType>
207    <xs:complexType name="mixPorts">
208        <xs:sequence>
209            <xs:element name="mixPort" minOccurs="0" maxOccurs="unbounded">
210                <xs:complexType>
211                    <xs:sequence>
212                        <xs:element name="profile" type="profile" minOccurs="0" maxOccurs="unbounded"/>
213                        <xs:element name="gains" type="gains" minOccurs="0"/>
214                    </xs:sequence>
215                    <xs:attribute name="name" type="xs:token" use="required"/>
216                    <xs:attribute name="role" type="role" use="required"/>
217                    <xs:attribute name="flags" type="audioInOutFlags"/>
218                    <xs:attribute name="maxOpenCount" type="xs:unsignedInt"/>
219                    <xs:attribute name="maxActiveCount" type="xs:unsignedInt"/>
220                    <xs:attribute name="recommendedMuteDurationMs" type="xs:unsignedInt"/>
221                </xs:complexType>
222                <xs:unique name="mixPortProfileUniqueness">
223                    <xs:selector xpath="profile"/>
224                    <xs:field xpath="format"/>
225                    <xs:field xpath="samplingRate"/>
226                    <xs:field xpath="channelMasks"/>
227                </xs:unique>
228                <xs:unique name="mixPortGainUniqueness">
229                    <xs:selector xpath="gains/gain"/>
230                    <xs:field xpath="@name"/>
231                </xs:unique>
232            </xs:element>
233        </xs:sequence>
234    </xs:complexType>
235    <xs:simpleType name="audioDevice">
236        <xs:restriction base="xs:string">
237            <xs:enumeration value="AUDIO_DEVICE_NONE"/>
238
239            <xs:enumeration value="AUDIO_DEVICE_OUT_EARPIECE"/>
240            <xs:enumeration value="AUDIO_DEVICE_OUT_SPEAKER"/>
241            <xs:enumeration value="AUDIO_DEVICE_OUT_WIRED_HEADSET"/>
242            <xs:enumeration value="AUDIO_DEVICE_OUT_WIRED_HEADPHONE"/>
243            <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_SCO"/>
244            <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET"/>
245            <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT"/>
246            <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP"/>
247            <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES"/>
248            <xs:enumeration value="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER"/>
249            <xs:enumeration value="AUDIO_DEVICE_OUT_HDMI"/>
250            <xs:enumeration value="AUDIO_DEVICE_OUT_HDMI_EARC"/>
251            <xs:enumeration value="AUDIO_DEVICE_OUT_AUX_DIGITAL"/>
252            <xs:enumeration value="AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET"/>
253            <xs:enumeration value="AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET"/>
254            <xs:enumeration value="AUDIO_DEVICE_OUT_USB_ACCESSORY"/>
255            <xs:enumeration value="AUDIO_DEVICE_OUT_USB_DEVICE"/>
256            <xs:enumeration value="AUDIO_DEVICE_OUT_REMOTE_SUBMIX"/>
257            <xs:enumeration value="AUDIO_DEVICE_OUT_TELEPHONY_TX"/>
258            <xs:enumeration value="AUDIO_DEVICE_OUT_LINE"/>
259            <xs:enumeration value="AUDIO_DEVICE_OUT_HDMI_ARC"/>
260            <xs:enumeration value="AUDIO_DEVICE_OUT_SPDIF"/>
261            <xs:enumeration value="AUDIO_DEVICE_OUT_FM"/>
262            <xs:enumeration value="AUDIO_DEVICE_OUT_AUX_LINE"/>
263            <xs:enumeration value="AUDIO_DEVICE_OUT_SPEAKER_SAFE"/>
264            <xs:enumeration value="AUDIO_DEVICE_OUT_IP"/>
265            <xs:enumeration value="AUDIO_DEVICE_OUT_MULTICHANNEL_GROUP"/>
266            <xs:enumeration value="AUDIO_DEVICE_OUT_BUS"/>
267            <xs:enumeration value="AUDIO_DEVICE_OUT_PROXY"/>
268            <xs:enumeration value="AUDIO_DEVICE_OUT_USB_HEADSET"/>
269            <xs:enumeration value="AUDIO_DEVICE_OUT_HEARING_AID"/>
270            <xs:enumeration value="AUDIO_DEVICE_OUT_ECHO_CANCELLER"/>
271            <xs:enumeration value="AUDIO_DEVICE_OUT_BLE_HEADSET"/>
272            <xs:enumeration value="AUDIO_DEVICE_OUT_BLE_SPEAKER"/>
273            <xs:enumeration value="AUDIO_DEVICE_OUT_BLE_BROADCAST"/>
274            <xs:enumeration value="AUDIO_DEVICE_OUT_DEFAULT"/>
275            <xs:enumeration value="AUDIO_DEVICE_OUT_STUB"/>
276
277            <xs:enumeration value="AUDIO_DEVICE_IN_COMMUNICATION"/>
278            <xs:enumeration value="AUDIO_DEVICE_IN_AMBIENT"/>
279            <xs:enumeration value="AUDIO_DEVICE_IN_BUILTIN_MIC"/>
280            <xs:enumeration value="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET"/>
281            <xs:enumeration value="AUDIO_DEVICE_IN_WIRED_HEADSET"/>
282            <xs:enumeration value="AUDIO_DEVICE_IN_HDMI"/>
283            <xs:enumeration value="AUDIO_DEVICE_IN_AUX_DIGITAL"/>
284            <xs:enumeration value="AUDIO_DEVICE_IN_VOICE_CALL"/>
285            <xs:enumeration value="AUDIO_DEVICE_IN_TELEPHONY_RX"/>
286            <xs:enumeration value="AUDIO_DEVICE_IN_BACK_MIC"/>
287            <xs:enumeration value="AUDIO_DEVICE_IN_REMOTE_SUBMIX"/>
288            <xs:enumeration value="AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET"/>
289            <xs:enumeration value="AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET"/>
290            <xs:enumeration value="AUDIO_DEVICE_IN_USB_ACCESSORY"/>
291            <xs:enumeration value="AUDIO_DEVICE_IN_USB_DEVICE"/>
292            <xs:enumeration value="AUDIO_DEVICE_IN_FM_TUNER"/>
293            <xs:enumeration value="AUDIO_DEVICE_IN_TV_TUNER"/>
294            <xs:enumeration value="AUDIO_DEVICE_IN_LINE"/>
295            <xs:enumeration value="AUDIO_DEVICE_IN_SPDIF"/>
296            <xs:enumeration value="AUDIO_DEVICE_IN_BLUETOOTH_A2DP"/>
297            <xs:enumeration value="AUDIO_DEVICE_IN_LOOPBACK"/>
298            <xs:enumeration value="AUDIO_DEVICE_IN_IP"/>
299            <xs:enumeration value="AUDIO_DEVICE_IN_BUS"/>
300            <xs:enumeration value="AUDIO_DEVICE_IN_PROXY"/>
301            <xs:enumeration value="AUDIO_DEVICE_IN_USB_HEADSET"/>
302            <xs:enumeration value="AUDIO_DEVICE_IN_BLUETOOTH_BLE"/>
303            <xs:enumeration value="AUDIO_DEVICE_IN_HDMI_ARC"/>
304            <xs:enumeration value="AUDIO_DEVICE_IN_HDMI_EARC"/>
305            <xs:enumeration value="AUDIO_DEVICE_IN_ECHO_REFERENCE"/>
306            <xs:enumeration value="AUDIO_DEVICE_IN_BLE_HEADSET"/>
307            <xs:enumeration value="AUDIO_DEVICE_IN_DEFAULT"/>
308            <xs:enumeration value="AUDIO_DEVICE_IN_STUB"/>
309        </xs:restriction>
310    </xs:simpleType>
311    <xs:simpleType name="vendorExtension">
312        <!-- Vendor extension names must be prefixed by "VX_" to distinguish them from
313             AOSP values. Vendors must namespace their names to avoid conflicts. The
314             namespace part must only use capital latin characters and decimal digits and
315             consist of at least 3 characters. The part of the extension name after the
316             namespace may in addition include underscores. Example for a hypothetical
317             Google virtual reality device:
318
319                 <devicePort tagName="VR" type="VX_GOOGLE_VR" role="sink" />
320        -->
321        <xs:restriction base="xs:string">
322            <xs:pattern value="VX_[A-Z0-9]{3,}_[_A-Z0-9]+"/>
323        </xs:restriction>
324    </xs:simpleType>
325    <xs:simpleType name="extendableAudioDevice">
326        <xs:union memberTypes="audioDevice vendorExtension"/>
327    </xs:simpleType>
328    <xs:simpleType name="audioFormat">
329        <xs:restriction base="xs:string">
330            <xs:enumeration value="AUDIO_FORMAT_DEFAULT" />
331            <xs:enumeration value="AUDIO_FORMAT_PCM_16_BIT" />
332            <xs:enumeration value="AUDIO_FORMAT_PCM_8_BIT"/>
333            <xs:enumeration value="AUDIO_FORMAT_PCM_32_BIT"/>
334            <xs:enumeration value="AUDIO_FORMAT_PCM_8_24_BIT"/>
335            <xs:enumeration value="AUDIO_FORMAT_PCM_FLOAT"/>
336            <xs:enumeration value="AUDIO_FORMAT_PCM_24_BIT_PACKED"/>
337            <xs:enumeration value="AUDIO_FORMAT_MP3"/>
338            <xs:enumeration value="AUDIO_FORMAT_AMR_NB"/>
339            <xs:enumeration value="AUDIO_FORMAT_AMR_WB"/>
340            <xs:enumeration value="AUDIO_FORMAT_AAC"/>
341            <xs:enumeration value="AUDIO_FORMAT_AAC_MAIN"/>
342            <xs:enumeration value="AUDIO_FORMAT_AAC_LC"/>
343            <xs:enumeration value="AUDIO_FORMAT_AAC_SSR"/>
344            <xs:enumeration value="AUDIO_FORMAT_AAC_LTP"/>
345            <xs:enumeration value="AUDIO_FORMAT_AAC_HE_V1"/>
346            <xs:enumeration value="AUDIO_FORMAT_AAC_SCALABLE"/>
347            <xs:enumeration value="AUDIO_FORMAT_AAC_ERLC"/>
348            <xs:enumeration value="AUDIO_FORMAT_AAC_LD"/>
349            <xs:enumeration value="AUDIO_FORMAT_AAC_HE_V2"/>
350            <xs:enumeration value="AUDIO_FORMAT_AAC_ELD"/>
351            <xs:enumeration value="AUDIO_FORMAT_AAC_XHE"/>
352            <xs:enumeration value="AUDIO_FORMAT_HE_AAC_V1"/>
353            <xs:enumeration value="AUDIO_FORMAT_HE_AAC_V2"/>
354            <xs:enumeration value="AUDIO_FORMAT_VORBIS"/>
355            <xs:enumeration value="AUDIO_FORMAT_OPUS"/>
356            <xs:enumeration value="AUDIO_FORMAT_AC3"/>
357            <xs:enumeration value="AUDIO_FORMAT_E_AC3"/>
358            <xs:enumeration value="AUDIO_FORMAT_E_AC3_JOC"/>
359            <xs:enumeration value="AUDIO_FORMAT_DTS"/>
360            <xs:enumeration value="AUDIO_FORMAT_DTS_HD"/>
361            <xs:enumeration value="AUDIO_FORMAT_IEC61937"/>
362            <xs:enumeration value="AUDIO_FORMAT_DOLBY_TRUEHD"/>
363            <xs:enumeration value="AUDIO_FORMAT_EVRC"/>
364            <xs:enumeration value="AUDIO_FORMAT_EVRCB"/>
365            <xs:enumeration value="AUDIO_FORMAT_EVRCWB"/>
366            <xs:enumeration value="AUDIO_FORMAT_EVRCNW"/>
367            <xs:enumeration value="AUDIO_FORMAT_AAC_ADIF"/>
368            <xs:enumeration value="AUDIO_FORMAT_WMA"/>
369            <xs:enumeration value="AUDIO_FORMAT_WMA_PRO"/>
370            <xs:enumeration value="AUDIO_FORMAT_AMR_WB_PLUS"/>
371            <xs:enumeration value="AUDIO_FORMAT_MP2"/>
372            <xs:enumeration value="AUDIO_FORMAT_QCELP"/>
373            <xs:enumeration value="AUDIO_FORMAT_DSD"/>
374            <xs:enumeration value="AUDIO_FORMAT_FLAC"/>
375            <xs:enumeration value="AUDIO_FORMAT_ALAC"/>
376            <xs:enumeration value="AUDIO_FORMAT_APE"/>
377            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS"/>
378            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_MAIN"/>
379            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_LC"/>
380            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_SSR"/>
381            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_LTP"/>
382            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_HE_V1"/>
383            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_SCALABLE"/>
384            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_ERLC"/>
385            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_LD"/>
386            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_HE_V2"/>
387            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_ELD"/>
388            <xs:enumeration value="AUDIO_FORMAT_AAC_ADTS_XHE"/>
389            <xs:enumeration value="AUDIO_FORMAT_SBC"/>
390            <xs:enumeration value="AUDIO_FORMAT_APTX"/>
391            <xs:enumeration value="AUDIO_FORMAT_APTX_HD"/>
392            <xs:enumeration value="AUDIO_FORMAT_AC4"/>
393            <xs:enumeration value="AUDIO_FORMAT_AC4_L4"/>
394            <xs:enumeration value="AUDIO_FORMAT_LDAC"/>
395            <xs:enumeration value="AUDIO_FORMAT_MAT"/>
396            <xs:enumeration value="AUDIO_FORMAT_MAT_1_0"/>
397            <xs:enumeration value="AUDIO_FORMAT_MAT_2_0"/>
398            <xs:enumeration value="AUDIO_FORMAT_MAT_2_1"/>
399            <xs:enumeration value="AUDIO_FORMAT_AAC_LATM"/>
400            <xs:enumeration value="AUDIO_FORMAT_AAC_LATM_LC"/>
401            <xs:enumeration value="AUDIO_FORMAT_AAC_LATM_HE_V1"/>
402            <xs:enumeration value="AUDIO_FORMAT_AAC_LATM_HE_V2"/>
403            <xs:enumeration value="AUDIO_FORMAT_CELT"/>
404            <xs:enumeration value="AUDIO_FORMAT_APTX_ADAPTIVE"/>
405            <xs:enumeration value="AUDIO_FORMAT_LHDC"/>
406            <xs:enumeration value="AUDIO_FORMAT_LHDC_LL"/>
407            <xs:enumeration value="AUDIO_FORMAT_APTX_TWSP"/>
408            <xs:enumeration value="AUDIO_FORMAT_LC3"/>
409            <xs:enumeration value="AUDIO_FORMAT_MPEGH_BL_L3"/>
410            <xs:enumeration value="AUDIO_FORMAT_MPEGH_BL_L4"/>
411            <xs:enumeration value="AUDIO_FORMAT_MPEGH_LC_L3"/>
412            <xs:enumeration value="AUDIO_FORMAT_MPEGH_LC_L4"/>
413            <xs:enumeration value="AUDIO_FORMAT_IEC60958"/>
414            <xs:enumeration value="AUDIO_FORMAT_DTS_UHD"/>
415            <xs:enumeration value="AUDIO_FORMAT_DRA"/>
416            <xs:enumeration value="AUDIO_FORMAT_APTX_ADAPTIVE_QLEA"/>
417            <xs:enumeration value="AUDIO_FORMAT_APTX_ADAPTIVE_R4"/>
418            <xs:enumeration value="AUDIO_FORMAT_DTS_HD_MA"/>
419            <xs:enumeration value="AUDIO_FORMAT_DTS_UHD_P2"/>
420            <xs:enumeration value="AUDIO_FORMAT_IAMF_SIMPLE_OPUS"/>
421            <xs:enumeration value="AUDIO_FORMAT_IAMF_SIMPLE_AAC"/>
422            <xs:enumeration value="AUDIO_FORMAT_IAMF_SIMPLE_PCM"/>
423            <xs:enumeration value="AUDIO_FORMAT_IAMF_SIMPLE_FLAC"/>
424            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_OPUS"/>
425            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_AAC"/>
426            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_PCM"/>
427            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_FLAC"/>
428            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_ENHANCED_OPUS"/>
429            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_ENHANCED_AAC"/>
430            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_ENHANCED_PCM"/>
431            <xs:enumeration value="AUDIO_FORMAT_IAMF_BASE_ENHANCED_FLAC"/>
432        </xs:restriction>
433    </xs:simpleType>
434    <xs:simpleType name="extendableAudioFormat">
435        <xs:union memberTypes="audioFormat vendorExtension"/>
436    </xs:simpleType>
437    <xs:simpleType name="samplingRates">
438        <xs:list itemType="xs:nonNegativeInteger" />
439    </xs:simpleType>
440    <xs:simpleType name="audioChannelMask">
441        <xs:annotation>
442            <xs:documentation xml:lang="en">
443                Audio channel mask specifies presence of particular channels.
444                There are two representations:
445                - representation position (traditional discrete channel specification,
446                  e.g. "left", "right");
447                - indexed (this is similar to "tracks" in audio mixing, channels
448                  are represented using numbers).
449            </xs:documentation>
450        </xs:annotation>
451        <xs:restriction base="xs:string">
452            <xs:enumeration value="AUDIO_CHANNEL_NONE"/>
453            <xs:enumeration value="AUDIO_CHANNEL_OUT_MONO"/>
454            <xs:enumeration value="AUDIO_CHANNEL_OUT_STEREO"/>
455            <xs:enumeration value="AUDIO_CHANNEL_OUT_2POINT1"/>
456            <xs:enumeration value="AUDIO_CHANNEL_OUT_TRI"/>
457            <xs:enumeration value="AUDIO_CHANNEL_OUT_TRI_BACK"/>
458            <xs:enumeration value="AUDIO_CHANNEL_OUT_3POINT1"/>
459            <xs:enumeration value="AUDIO_CHANNEL_OUT_2POINT0POINT2"/>
460            <xs:enumeration value="AUDIO_CHANNEL_OUT_2POINT1POINT2"/>
461            <xs:enumeration value="AUDIO_CHANNEL_OUT_3POINT0POINT2"/>
462            <xs:enumeration value="AUDIO_CHANNEL_OUT_3POINT1POINT2"/>
463            <xs:enumeration value="AUDIO_CHANNEL_OUT_QUAD"/>
464            <xs:enumeration value="AUDIO_CHANNEL_OUT_QUAD_BACK"/>
465            <xs:enumeration value="AUDIO_CHANNEL_OUT_QUAD_SIDE"/>
466            <xs:enumeration value="AUDIO_CHANNEL_OUT_SURROUND"/>
467            <xs:enumeration value="AUDIO_CHANNEL_OUT_PENTA"/>
468            <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1"/>
469            <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1_BACK"/>
470            <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1_SIDE"/>
471            <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1POINT2"/>
472            <xs:enumeration value="AUDIO_CHANNEL_OUT_5POINT1POINT4"/>
473            <xs:enumeration value="AUDIO_CHANNEL_OUT_6POINT1"/>
474            <xs:enumeration value="AUDIO_CHANNEL_OUT_7POINT1"/>
475            <xs:enumeration value="AUDIO_CHANNEL_OUT_7POINT1POINT2"/>
476            <xs:enumeration value="AUDIO_CHANNEL_OUT_7POINT1POINT4"/>
477            <xs:enumeration value="AUDIO_CHANNEL_OUT_9POINT1POINT4"/>
478            <xs:enumeration value="AUDIO_CHANNEL_OUT_9POINT1POINT6"/>
479            <xs:enumeration value="AUDIO_CHANNEL_OUT_13POINT0"/>
480            <xs:enumeration value="AUDIO_CHANNEL_OUT_22POINT2"/>
481            <xs:enumeration value="AUDIO_CHANNEL_OUT_MONO_HAPTIC_A"/>
482            <xs:enumeration value="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_A"/>
483            <xs:enumeration value="AUDIO_CHANNEL_OUT_HAPTIC_AB"/>
484            <xs:enumeration value="AUDIO_CHANNEL_OUT_MONO_HAPTIC_AB"/>
485            <xs:enumeration value="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_AB"/>
486            <xs:enumeration value="AUDIO_CHANNEL_IN_MONO"/>
487            <xs:enumeration value="AUDIO_CHANNEL_IN_STEREO"/>
488            <xs:enumeration value="AUDIO_CHANNEL_IN_2POINT1"/>
489            <xs:enumeration value="AUDIO_CHANNEL_IN_FRONT_BACK"/>
490            <xs:enumeration value="AUDIO_CHANNEL_IN_TRI"/>
491            <xs:enumeration value="AUDIO_CHANNEL_IN_3POINT1"/>
492            <xs:enumeration value="AUDIO_CHANNEL_IN_6"/>
493            <xs:enumeration value="AUDIO_CHANNEL_IN_2POINT0POINT2"/>
494            <xs:enumeration value="AUDIO_CHANNEL_IN_2POINT1POINT2"/>
495            <xs:enumeration value="AUDIO_CHANNEL_IN_3POINT0POINT2"/>
496            <xs:enumeration value="AUDIO_CHANNEL_IN_3POINT1POINT2"/>
497            <xs:enumeration value="AUDIO_CHANNEL_IN_QUAD"/>
498            <xs:enumeration value="AUDIO_CHANNEL_IN_PENTA"/>
499            <xs:enumeration value="AUDIO_CHANNEL_IN_5POINT1"/>
500            <xs:enumeration value="AUDIO_CHANNEL_IN_VOICE_UPLINK_MONO"/>
501            <xs:enumeration value="AUDIO_CHANNEL_IN_VOICE_DNLINK_MONO"/>
502            <xs:enumeration value="AUDIO_CHANNEL_IN_VOICE_CALL_MONO"/>
503            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_1"/>
504            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_2"/>
505            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_3"/>
506            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_4"/>
507            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_5"/>
508            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_6"/>
509            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_7"/>
510            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_8"/>
511            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_9"/>
512            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_10"/>
513            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_11"/>
514            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_12"/>
515            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_13"/>
516            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_14"/>
517            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_15"/>
518            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_16"/>
519            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_17"/>
520            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_18"/>
521            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_19"/>
522            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_20"/>
523            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_21"/>
524            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_22"/>
525            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_23"/>
526            <xs:enumeration value="AUDIO_CHANNEL_INDEX_MASK_24"/>
527        </xs:restriction>
528    </xs:simpleType>
529    <xs:simpleType name="channelMasks">
530        <xs:list itemType="audioChannelMask" />
531    </xs:simpleType>
532    <xs:complexType name="profile">
533        <xs:attribute name="format" type="extendableAudioFormat" use="optional"/>
534        <xs:attribute name="samplingRates" type="samplingRates" use="optional"/>
535        <xs:attribute name="channelMasks" type="channelMasks" use="optional"/>
536    </xs:complexType>
537    <xs:simpleType name="audioGainMode">
538        <xs:restriction base="xs:string">
539            <xs:enumeration value="AUDIO_GAIN_MODE_JOINT"/>
540            <xs:enumeration value="AUDIO_GAIN_MODE_CHANNELS"/>
541            <xs:enumeration value="AUDIO_GAIN_MODE_RAMP"/>
542        </xs:restriction>
543    </xs:simpleType>
544    <xs:simpleType name="audioGainModeMaskUnrestricted">
545        <xs:list itemType="audioGainMode" />
546    </xs:simpleType>
547    <xs:simpleType name='audioGainModeMask'>
548        <xs:restriction base='audioGainModeMaskUnrestricted'>
549            <xs:minLength value='1' />
550        </xs:restriction>
551    </xs:simpleType>
552    <xs:complexType name="gains">
553        <xs:sequence>
554            <xs:element name="gain" minOccurs="0" maxOccurs="unbounded">
555                <xs:complexType>
556                    <xs:attribute name="mode" type="audioGainModeMask" use="required"/>
557                    <xs:attribute name="channel_mask" type="audioChannelMask" use="optional"/>
558                    <xs:attribute name="minValueMB" type="xs:int" use="optional"/>
559                    <xs:attribute name="maxValueMB" type="xs:int" use="optional"/>
560                    <xs:attribute name="defaultValueMB" type="xs:int" use="optional"/>
561                    <xs:attribute name="stepValueMB" type="xs:int" use="optional"/>
562                    <xs:attribute name="minRampMs" type="xs:int" use="optional"/>
563                    <xs:attribute name="maxRampMs" type="xs:int" use="optional"/>
564                    <xs:attribute name="useForVolume" type="xs:boolean" use="optional"/>
565                </xs:complexType>
566            </xs:element>
567        </xs:sequence>
568    </xs:complexType>
569    <xs:complexType name="devicePorts">
570        <xs:sequence>
571            <xs:element name="devicePort" minOccurs="0" maxOccurs="unbounded">
572                <xs:complexType>
573                    <xs:sequence>
574                        <xs:element name="profile" type="profile" minOccurs="0" maxOccurs="unbounded"/>
575                        <xs:element name="gains" type="gains" minOccurs="0"/>
576                    </xs:sequence>
577                    <xs:attribute name="tagName" type="xs:token" use="required"/>
578                    <xs:attribute name="type" type="extendableAudioDevice" use="required"/>
579                    <xs:attribute name="role" type="role" use="required"/>
580                    <xs:attribute name="address" type="xs:string" use="optional" default=""/>
581                    <!-- Note that XSD 1.0 can not check that a type only has one default. -->
582                    <xs:attribute name="default" type="xs:boolean" use="optional">
583                        <xs:annotation>
584                            <xs:documentation xml:lang="en">
585                                The default device will be used if multiple have the same type
586                                and no explicit route request exists for a specific device of
587                                that type.
588                            </xs:documentation>
589                        </xs:annotation>
590                    </xs:attribute>
591                    <xs:attribute name="encodedFormats" type="audioFormatsList" use="optional"
592                                  default="" />
593                </xs:complexType>
594                <xs:unique name="devicePortProfileUniqueness">
595                    <xs:selector xpath="profile"/>
596                    <xs:field xpath="format"/>
597                    <xs:field xpath="samplingRate"/>
598                    <xs:field xpath="channelMasks"/>
599                </xs:unique>
600                <xs:unique name="devicePortGainUniqueness">
601                    <xs:selector xpath="gains/gain"/>
602                    <xs:field xpath="@name"/>
603                </xs:unique>
604            </xs:element>
605        </xs:sequence>
606    </xs:complexType>
607    <xs:simpleType name="mixType">
608        <xs:restriction base="xs:string">
609            <xs:enumeration value="mix"/>
610            <xs:enumeration value="mux"/>
611        </xs:restriction>
612    </xs:simpleType>
613    <xs:complexType name="routes">
614        <xs:sequence>
615            <xs:element name="route" minOccurs="0" maxOccurs="unbounded">
616                <xs:annotation>
617                    <xs:documentation xml:lang="en">
618                        List all available sources for a given sink.
619                    </xs:documentation>
620                </xs:annotation>
621                <xs:complexType>
622                    <xs:attribute name="type" type="mixType" use="required"/>
623                    <xs:attribute name="sink" type="xs:string" use="required"/>
624                    <xs:attribute name="sources" type="xs:string" use="required"/>
625                </xs:complexType>
626            </xs:element>
627        </xs:sequence>
628    </xs:complexType>
629    <xs:complexType name="volumes">
630        <xs:sequence>
631            <xs:element name="volume" type="volume" minOccurs="0" maxOccurs="unbounded"/>
632            <xs:element name="reference" type="reference" minOccurs="0" maxOccurs="unbounded">
633            </xs:element>
634        </xs:sequence>
635    </xs:complexType>
636    <!-- TODO: Always require a ref for better xsd validations.
637               Currently a volume could have no points nor ref
638               as it can not be forbidden by xsd 1.0.-->
639    <xs:simpleType name="volumePoint">
640        <xs:annotation>
641            <xs:documentation xml:lang="en">
642                Comma separated pair of number.
643                The fist one is the framework level (between 0 and 100).
644                The second one is the volume to send to the HAL.
645                The framework will interpolate volumes not specified.
646                Their MUST be at least 2 points specified.
647            </xs:documentation>
648        </xs:annotation>
649        <xs:restriction base="xs:string">
650            <xs:pattern value="([0-9]{1,2}|100),-?[0-9]+"/>
651        </xs:restriction>
652    </xs:simpleType>
653    <xs:simpleType name="audioStreamType">
654        <xs:annotation>
655            <xs:documentation xml:lang="en">
656                Audio stream type describing the intended use case of a stream.
657                Please consult frameworks/base/media/java/android/media/AudioSystem.java
658                for the description of each value.
659            </xs:documentation>
660        </xs:annotation>
661        <xs:restriction base="xs:string">
662            <xs:enumeration value="AUDIO_STREAM_VOICE_CALL"/>
663            <xs:enumeration value="AUDIO_STREAM_SYSTEM"/>
664            <xs:enumeration value="AUDIO_STREAM_RING"/>
665            <xs:enumeration value="AUDIO_STREAM_MUSIC"/>
666            <xs:enumeration value="AUDIO_STREAM_ALARM"/>
667            <xs:enumeration value="AUDIO_STREAM_NOTIFICATION"/>
668            <xs:enumeration value="AUDIO_STREAM_BLUETOOTH_SCO"/>
669            <xs:enumeration value="AUDIO_STREAM_ENFORCED_AUDIBLE"/>
670            <xs:enumeration value="AUDIO_STREAM_DTMF"/>
671            <xs:enumeration value="AUDIO_STREAM_TTS"/>
672            <xs:enumeration value="AUDIO_STREAM_ACCESSIBILITY"/>
673            <xs:enumeration value="AUDIO_STREAM_ASSISTANT"/>
674            <xs:enumeration value="AUDIO_STREAM_REROUTING"/>
675            <xs:enumeration value="AUDIO_STREAM_PATCH"/>
676            <xs:enumeration value="AUDIO_STREAM_CALL_ASSISTANT"/>
677        </xs:restriction>
678    </xs:simpleType>
679    <xs:simpleType name="audioSource">
680        <xs:annotation>
681            <xs:documentation xml:lang="en">
682                An audio source defines the intended use case for the sound being recorded.
683                Please consult frameworks/base/media/java/android/media/MediaRecorder.java
684                for the description of each value.
685            </xs:documentation>
686        </xs:annotation>
687        <xs:restriction base="xs:string">
688            <xs:enumeration value="AUDIO_SOURCE_DEFAULT"/>
689            <xs:enumeration value="AUDIO_SOURCE_MIC"/>
690            <xs:enumeration value="AUDIO_SOURCE_VOICE_UPLINK"/>
691            <xs:enumeration value="AUDIO_SOURCE_VOICE_DOWNLINK"/>
692            <xs:enumeration value="AUDIO_SOURCE_VOICE_CALL"/>
693            <xs:enumeration value="AUDIO_SOURCE_CAMCORDER"/>
694            <xs:enumeration value="AUDIO_SOURCE_VOICE_RECOGNITION"/>
695            <xs:enumeration value="AUDIO_SOURCE_VOICE_COMMUNICATION"/>
696            <xs:enumeration value="AUDIO_SOURCE_REMOTE_SUBMIX"/>
697            <xs:enumeration value="AUDIO_SOURCE_UNPROCESSED"/>
698            <xs:enumeration value="AUDIO_SOURCE_VOICE_PERFORMANCE"/>
699            <xs:enumeration value="AUDIO_SOURCE_ECHO_REFERENCE"/>
700            <xs:enumeration value="AUDIO_SOURCE_FM_TUNER"/>
701            <xs:enumeration value="AUDIO_SOURCE_HOTWORD"/>
702            <xs:enumeration value="AUDIO_SOURCE_ULTRASOUND"/>
703        </xs:restriction>
704    </xs:simpleType>
705    <!-- Enum values of device_category from Volume.h. -->
706    <xs:simpleType name="deviceCategory">
707        <xs:restriction base="xs:string">
708            <xs:enumeration value="DEVICE_CATEGORY_HEADSET"/>
709            <xs:enumeration value="DEVICE_CATEGORY_SPEAKER"/>
710            <xs:enumeration value="DEVICE_CATEGORY_EARPIECE"/>
711            <xs:enumeration value="DEVICE_CATEGORY_EXT_MEDIA"/>
712            <xs:enumeration value="DEVICE_CATEGORY_HEARING_AID"/>
713        </xs:restriction>
714    </xs:simpleType>
715    <xs:complexType name="volume">
716        <xs:annotation>
717            <xs:documentation xml:lang="en">
718                Volume section defines a volume curve for a given use case and device category.
719                It contains a list of points of this curve expressing the attenuation in Millibels
720                for a given volume index from 0 to 100.
721                <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
722                    <point>0,-9600</point>
723                    <point>100,0</point>
724                </volume>
725
726                It may also reference a reference/@name to avoid duplicating curves.
727                <volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER"
728                        ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
729                <reference name="DEFAULT_MEDIA_VOLUME_CURVE">
730                    <point>0,-9600</point>
731                    <point>100,0</point>
732                </reference>
733            </xs:documentation>
734        </xs:annotation>
735        <xs:sequence>
736            <xs:element name="point" type="volumePoint" minOccurs="0" maxOccurs="unbounded"/>
737        </xs:sequence>
738        <xs:attribute name="stream" type="audioStreamType"/>
739        <xs:attribute name="deviceCategory" type="deviceCategory"/>
740        <xs:attribute name="ref" type="xs:token" use="optional"/>
741    </xs:complexType>
742    <xs:complexType name="reference">
743        <xs:sequence>
744            <xs:element name="point" type="volumePoint" minOccurs="2" maxOccurs="unbounded"/>
745        </xs:sequence>
746        <xs:attribute name="name" type="xs:token" use="required"/>
747    </xs:complexType>
748    <xs:complexType name="surroundSound">
749        <xs:annotation>
750            <xs:documentation xml:lang="en">
751                Surround Sound section provides configuration related to handling of
752                multi-channel formats.
753            </xs:documentation>
754        </xs:annotation>
755        <xs:sequence>
756            <xs:element name="formats" type="surroundFormats"/>
757        </xs:sequence>
758    </xs:complexType>
759    <xs:simpleType name="audioFormatsList">
760        <xs:list itemType="extendableAudioFormat" />
761    </xs:simpleType>
762    <xs:complexType name="surroundFormats">
763        <xs:sequence>
764            <xs:element name="format" minOccurs="0" maxOccurs="unbounded">
765                <xs:complexType>
766                    <xs:attribute name="name" type="extendableAudioFormat" use="required"/>
767                    <xs:attribute name="subformats" type="audioFormatsList" />
768                </xs:complexType>
769            </xs:element>
770        </xs:sequence>
771    </xs:complexType>
772    <xs:simpleType name="engineSuffix">
773        <xs:restriction base="xs:string">
774            <xs:enumeration value="default"/>
775            <xs:enumeration value="configurable"/>
776        </xs:restriction>
777    </xs:simpleType>
778</xs:schema>
779