Merge "Require HW AV sync flag match for compatible output IOProfile"

am: bac928872a

Change-Id: I38ee94ca51369d66e18ca01acc9c12311a7e576f
gugelfrei
Mikhail Naganov 5 years ago committed by android-build-merger
commit ee14f82361

@ -79,7 +79,9 @@ bool IOProfile::isCompatibleProfile(const DeviceVector &devices,
}
}
if (isPlaybackThread && (getFlags() & flags) != flags) {
const uint32_t mustMatchOutputFlags = AUDIO_OUTPUT_FLAG_HW_AV_SYNC;
if (isPlaybackThread && (((getFlags() ^ flags) & mustMatchOutputFlags)
|| (getFlags() & flags) != flags)) {
return false;
}
// The only input flag that is allowed to be different is the fast flag.

Loading…
Cancel
Save