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

Commit 579a74ac authored by Mikhail Naganov's avatar Mikhail Naganov Committed by android-build-merger
Browse files

Merge "Require HW AV sync flag match for compatible output IOProfile" am: bac92887 am: ee14f823

am: 37c9fa63

Change-Id: Ib236edf986af5f34cae1106c2b7a083fd41966c8
parents 82a750d2 37c9fa63
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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.