From 28ed2f93324988767b5658eba7c1fa781a275183 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Thu, 7 Jun 2012 10:17:54 -0700 Subject: Reduce underruns in screen off, esp. with EQ Add MonoPipe APIs to specify setpoint. Use screen state to configure pipe setpoint. Fix a long-standing bug where pipe sleep time was excessive, which interacted poorly with governor and low clock frequencies. Now it deducts the elapsed time since last write(), which was significant when there was EQ and low clock frequency. Bug: 6618373 Change-Id: I6f3b0072c2244aeb033ef0795ad164491a164ff5 --- services/audioflinger/AudioFlinger.h | 1 + 1 file changed, 1 insertion(+) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 1c44f2f7..677d466e 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -1119,6 +1119,7 @@ public: // For dumpsys sp mTeeSink; sp mTeeSource; + uint32_t mScreenState; // cached copy of gScreenState public: virtual bool hasFastMixer() const = 0; virtual FastTrackUnderruns getFastTrackUnderruns(size_t fastIndex) const -- cgit v1.2.3