From 0f7b5f2b231caf87da9b20b74d086e5a9d6f4a9d Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 19 Dec 2014 10:43:21 -0800 Subject: audioflinger: pause HW A/V sync output when AudioTrack underruns Do not standby, starve or feed 0s to the audio HAL on direct output using HW A/V sync mode. Bug: 17883772. Change-Id: I11e6c97ec24360d75f9b602814d40a54b60cb7a7 --- services/audioflinger/Threads.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/audioflinger/Threads.h') diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h index f5d0e27..1088843 100644 --- a/services/audioflinger/Threads.h +++ b/services/audioflinger/Threads.h @@ -710,6 +710,9 @@ protected: audio_patch_handle_t *handle); virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle); + bool usesHwAvSync() const { return (mType == DIRECT) && (mOutput != NULL) && + (mOutput->flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC); } + private: friend class AudioFlinger; // for numerous -- cgit v1.1