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

Commit c435e5f9 authored by Eric Laurent's avatar Eric Laurent Committed by Mikhail Naganov
Browse files

Revert "Force DIRECT flag on direct output thread."

This reverts commit f7667505.

Reason for revert: b/160316553

Bug: 130296239
Bug: 160316553
Change-Id: Ib1d3a9bbbba66455585e0c4a2826f3c05263334e
parent f7667505
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2088,12 +2088,6 @@ sp<AudioFlinger::PlaybackThread::Track> AudioFlinger::PlaybackThread::createTrac
        outputFlags = (audio_output_flags_t)(outputFlags | AUDIO_OUTPUT_FLAG_FAST);
    }

    // Set DIRECT flag if current thread is DirectOutputThread. This can happen when the playback is
    // rerouted to direct output thread by dynamic audio policy.
    if (mType == DIRECT) {
        *flags = (audio_output_flags_t)(*flags | AUDIO_OUTPUT_FLAG_DIRECT);
    }

    // Check if requested flags are compatible with output stream flags
    if ((*flags & outputFlags) != *flags) {
        ALOGW("createTrack_l(): mismatch between requested flags (%08x) and output flags (%08x)",