summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-06-07 10:17:54 -0700
committerGlenn Kasten <gkasten@google.com>2012-06-08 10:09:22 -0700
commit28ed2f93324988767b5658eba7c1fa781a275183 (patch)
tree07ba39f61d41aa6ff2af76dc2c9122a102c92059 /include
parenta4f7e0e9a0e92a063f1b3a08988cf46e2cf1fa94 (diff)
downloadframeworks_av-28ed2f93324988767b5658eba7c1fa781a275183.zip
frameworks_av-28ed2f93324988767b5658eba7c1fa781a275183.tar.gz
frameworks_av-28ed2f93324988767b5658eba7c1fa781a275183.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioParameter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/AudioParameter.h b/include/media/AudioParameter.h
index 8cb2fa7..891bc4b 100644
--- a/include/media/AudioParameter.h
+++ b/include/media/AudioParameter.h
@@ -40,12 +40,14 @@ public:
// keyFrameCount: to change audio output frame count, value is an int
// keyInputSource: to change audio input source, value is an int in audio_source_t
// (defined in media/mediarecorder.h)
+ // keyScreenState: either "on" or "off"
static const char * const keyRouting;
static const char * const keySamplingRate;
static const char * const keyFormat;
static const char * const keyChannels;
static const char * const keyFrameCount;
static const char * const keyInputSource;
+ static const char * const keyScreenState;
String8 toString();