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