Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee6772e1 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

audio: Add 'encodedFormats' field to 'devicePort'

This is used to specify the list of codecs that the device
supports.

Bug: 120860184
Test: xmllint --noout --xinclude --schema \
      hardware/interfaces/audio/5.0/config/audio_policy_configuration.xsd \
      frameworks/av/services/audiopolicy/config/audio_policy_configuration*.xml

Change-Id: Ifb80afed7947dc2332a8188defa86db98851188e
parent 6226e6f9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@ package audio.policy.configuration.V5_0 {
  public static class DevicePorts.DevicePort {
    ctor public DevicePorts.DevicePort();
    method public java.lang.String getAddress();
    method public java.util.List<audio.policy.configuration.V5_0.AudioFormat> getEncodedFormats();
    method public audio.policy.configuration.V5_0.Gains getGains();
    method public java.util.List<audio.policy.configuration.V5_0.Profile> getProfile();
    method public audio.policy.configuration.V5_0.Role getRole();
@@ -201,6 +202,7 @@ package audio.policy.configuration.V5_0 {
    method public java.lang.String getType();
    method public boolean get_default();
    method public void setAddress(java.lang.String);
    method public void setEncodedFormats(java.util.List<audio.policy.configuration.V5_0.AudioFormat>);
    method public void setGains(audio.policy.configuration.V5_0.Gains);
    method public void setRole(audio.policy.configuration.V5_0.Role);
    method public void setTagName(java.lang.String);
+4 −2
Original line number Diff line number Diff line
@@ -461,6 +461,8 @@
                            </xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="encodedFormats" type="audioFormatsList" use="optional"
                                  default="" />
                </xs:complexType>
                <xs:unique name="devicePortProfileUniqueness">
                    <xs:selector xpath="profile"/>
@@ -595,7 +597,7 @@
            <xs:element name="formats" type="surroundFormats"/>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="surroundFormatsList">
    <xs:simpleType name="audioFormatsList">
        <xs:list itemType="audioFormat" />
    </xs:simpleType>
    <xs:complexType name="surroundFormats">
@@ -603,7 +605,7 @@
            <xs:element name="format" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:attribute name="name" type="audioFormat" use="required"/>
                    <xs:attribute name="subformats" type="surroundFormatsList" />
                    <xs:attribute name="subformats" type="audioFormatsList" />
                </xs:complexType>
            </xs:element>
        </xs:sequence>