audio: Add fields belonged to APM XSD schema to HAL structs
Since APM XML configuration is being replaced with data provided by the HAL, add data fields used to be in the APM XSD schema to HAL structures. Summary of changes: - Audio*Flags enum types moved to HAL types because flags are specified for mixPorts in the APM config; - AudioGainSys.useForVolume -> AudioGain - added AudioPort.flags because they are specified in the APM config for mixPorts; since AudioIoFlags is a union, it will be used for determining the mix port role; - AudioPortConfigSys.flags -> AudioPortConfig this is for symmetry with AudioPort; In C++: - DeviceDescriptor.mEncodedFormats -> DeviceDescriptorBase - IOProfile.max{Open|Active}Count -> AudioPort - IOProfile.recommendedMuteDurationMs -> AudioPort Flags are not moved out from PolicyAudioPort to AudioPort as it's a non-trivial change. Bug: 198812639 Test: atest audiofoundation_parcelable_test Test: atest audiopolicy_tests Change-Id: I7aca107f7e7f20c6cd97080327cb9e4589cbe544
Loading
Please register or sign in to comment