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