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

Commit 4fd526bb authored by Mikhail Naganov's avatar Mikhail Naganov Committed by android-build-merger
Browse files

Merge "audiopolicy: Match DIRECT and MMAP_NOIRQ flags exactly in IOProfile"...

Merge "audiopolicy: Match DIRECT and MMAP_NOIRQ flags exactly in IOProfile" am: f28a06da am: a24a5f96
am: 7c1ec233

Change-Id: I934a623ed4a7a1fd51fe2a41fe45af8c41ff16e5
parents e153774a 7c1ec233
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -79,7 +79,8 @@ bool IOProfile::isCompatibleProfile(const DeviceVector &devices,
        }
    }

    const uint32_t mustMatchOutputFlags = AUDIO_OUTPUT_FLAG_HW_AV_SYNC;
    const uint32_t mustMatchOutputFlags =
            AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_HW_AV_SYNC|AUDIO_OUTPUT_FLAG_MMAP_NOIRQ;
    if (isPlaybackThread && (((getFlags() ^ flags) & mustMatchOutputFlags)
                    || (getFlags() & flags) != flags)) {
        return false;