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