mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 02:42:35 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user