1<?xml version="1.0"?> 2<!-- Copyright (C) 2019 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="1.0" 17 xmlns:xs="http://www.w3.org/2001/XMLSchema"> 18 <xs:include schemaLocation="../../../../audio/4.0/config/audio_policy_configuration.xsd"/> 19 <xs:complexType name="config"> 20 <xs:annotation> 21 <xs:documentation xml:lang="en"> 22 List the config versions supported by Short Audio Descriptor(SAD) config. 23 </xs:documentation> 24 </xs:annotation> 25 <xs:sequence> 26 <xs:element name="device" type="device" minOccurs="0" maxOccurs="unbounded"/> 27 </xs:sequence> 28 <xs:attribute name="version" type="version"/> 29 </xs:complexType> 30 <xs:complexType name="device"> 31 <xs:annotation> 32 <xs:documentation xml:lang="en"> 33 Device section: 34 There is a list of configurations in this SAD config for all the input audio 35 devices that the current Android device supports. 36 Each device has the following attributes: 37 "type": type of the audio device. 38 And the following element 39 <supportedFormat/>: the supported format info of the device. There can be 40 multiple formats supported by one audio device. 41 </xs:documentation> 42 </xs:annotation> 43 <xs:sequence> 44 <xs:element name="supportedFormat" type="supportedFormat" minOccurs="0" maxOccurs="unbounded"/> 45 </xs:sequence> 46 <xs:attribute name="type" type="extendableAudioDevice" use="required"/> 47 </xs:complexType> 48 <xs:complexType name="supportedFormat"> 49 <xs:annotation> 50 <xs:documentation xml:lang="en"> 51 SupportedFormat section: 52 The details of the short audio descriptor of a specific audio format 53 supported by the audio device. Attributes as follows: 54 "format": format enum of the current supported format. 55 "descriptor": three-byte short audio descriptor for the given format in hex. 56 </xs:documentation> 57 </xs:annotation> 58 <xs:attribute name="format" type="hdmiAudioFormat" use="required"/> 59 <xs:attribute name="descriptor" type="descriptor" use="required"/> 60 </xs:complexType> 61 <xs:simpleType name="descriptor"> 62 <xs:restriction base="xs:string"> 63 <xs:pattern value="[a-fA-F0-9]{6}"/> 64 </xs:restriction> 65 </xs:simpleType> 66 <xs:simpleType name="hdmiAudioFormat"> 67 <xs:restriction base="xs:string"> 68 <xs:enumeration value="AUDIO_FORMAT_NONE"/> 69 <xs:enumeration value="AUDIO_FORMAT_LPCM"/> 70 <xs:enumeration value="AUDIO_FORMAT_DD"/> 71 <xs:enumeration value="AUDIO_FORMAT_MPEG1"/> 72 <xs:enumeration value="AUDIO_FORMAT_MP3"/> 73 <xs:enumeration value="AUDIO_FORMAT_MPEG2"/> 74 <xs:enumeration value="AUDIO_FORMAT_AAC"/> 75 <xs:enumeration value="AUDIO_FORMAT_DTS"/> 76 <xs:enumeration value="AUDIO_FORMAT_ATRAC"/> 77 <xs:enumeration value="AUDIO_FORMAT_ONEBITAUDIO"/> 78 <xs:enumeration value="AUDIO_FORMAT_DDP"/> 79 <xs:enumeration value="AUDIO_FORMAT_DTSHD"/> 80 <xs:enumeration value="AUDIO_FORMAT_TRUEHD"/> 81 <xs:enumeration value="AUDIO_FORMAT_DST"/> 82 <xs:enumeration value="AUDIO_FORMAT_WMAPRO"/> 83 </xs:restriction> 84 </xs:simpleType> 85 <xs:element name="config" type="config"/> 86</xs:schema> 87