audio: Update audioPolicyConfiguration version

HAL V7 uses spaces instead of ',' and '|' for delimiting
elements in channel masks, sample rates, and flags lists
in the Audio Policy Manager configuration XML.
The version specified in the APM XML has been updated
from '1.0' to '7.0' in order to reflect this.

The migration script has been updated to change the
version in the XML on update.

Bug: 142480271
Test: m
Change-Id: I92c206dddee6964fc2019fed80435cb8d69dbfe9
This commit is contained in:
Mikhail Naganov 2021-02-04 19:24:05 +00:00
parent 371265231c
commit 8a52581b09
3 changed files with 5 additions and 2 deletions

View file

@ -544,7 +544,7 @@ package android.audio.policy.configuration.V7_0 {
public enum Version {
method @NonNull public String getRawName();
enum_constant public static final android.audio.policy.configuration.V7_0.Version _1_0;
enum_constant public static final android.audio.policy.configuration.V7_0.Version _7_0;
}
public class Volume {

View file

@ -20,7 +20,7 @@
<!-- List the config versions supported by audio policy. -->
<xs:simpleType name="version">
<xs:restriction base="xs:decimal">
<xs:enumeration value="1.0"/>
<xs:enumeration value="7.0"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="halVersion">

View file

@ -113,6 +113,9 @@ echo "Will update paths to shared included files."
echo "Press Ctrl-C to cancel, Enter to continue"
read
# Update 'audioPolicyConfiguration version="1.0"' -> 7.0 in the main file
sed -i -r -e 's/(audioPolicyConfiguration version=")1.0/\17.0/' ${SOURCE_CONFIG}
updateFile() {
FILE=$1
ATTR=$2