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

Commit 33223031 authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "AudioFlinger: Send down HW_AV_SYNC only if track has the flag" am: 0d83baaa am: 184a3067

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1783809

Change-Id: I4839809ad2110ba085202d691de23e30915c2e93
parents 8bf7d2b2 184a3067
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -997,9 +997,10 @@ status_t AudioFlinger::createTrack(const media::CreateTrackRequest& _input,
                }
            }
        }

        if ((output.flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC) == AUDIO_OUTPUT_FLAG_HW_AV_SYNC) {
            setAudioHwSyncForSession_l(thread, sessionId);
        }
    }

    if (lStatus != NO_ERROR) {
        // remove local strong reference to Client before deleting the Track so that the