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

Commit b0ea9e92 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:...

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

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

Change-Id: I0d9acaebfe18a23ced074709694cd39f1837302b
parents dfb25a4f 33223031
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