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

Commit 6eff0ffb authored by Andy Hung's avatar Andy Hung
Browse files

AudioFlinger: Send down HW_AV_SYNC only if track has the flag

Test: vendor, see bug
Bug: 194861106
Change-Id: I822b7cb8a72e3ed8b5a61ccdc57c9bb8fbc8d4ab
parent c30aabdc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -976,9 +976,10 @@ sp<IAudioTrack> AudioFlinger::createTrack(const CreateTrackInput& 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