summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-12-19 10:43:21 -0800
committerEric Laurent <elaurent@google.com>2014-12-19 16:41:52 -0800
commit0f7b5f2b231caf87da9b20b74d086e5a9d6f4a9d (patch)
treef6f15345f054cdc13116a1443b80454e256b7c71 /services/audioflinger/Threads.h
parente48cf5b8f823c30af93577c1e380d752ac69b871 (diff)
downloadframeworks_av-0f7b5f2b231caf87da9b20b74d086e5a9d6f4a9d.zip
frameworks_av-0f7b5f2b231caf87da9b20b74d086e5a9d6f4a9d.tar.gz
frameworks_av-0f7b5f2b231caf87da9b20b74d086e5a9d6f4a9d.tar.bz2
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
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h3
1 files changed, 3 insertions, 0 deletions
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