From a2d00e1b6634af9867737c74a7eba9dbe234c128 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 --- include/media/AudioParameter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/media') diff --git a/include/media/AudioParameter.h b/include/media/AudioParameter.h index 8cb2fa75..891bc4bd 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(); -- cgit v1.2.3 From fa2b8f243eb048fb2b8e5a14356190f69eb31a36 Mon Sep 17 00:00:00 2001 From: Edwin Wong Date: Tue, 10 Jul 2012 20:01:13 -0700 Subject: Fixed sample video corrupted in MediaCodec mode. Change-Id: I50c5660072d40f6e297e58fd026ea04c89d6a70a related-to-bug: 6732061 --- include/media/ICrypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/media') diff --git a/include/media/ICrypto.h b/include/media/ICrypto.h index 32a2cf77..61059bde 100644 --- a/include/media/ICrypto.h +++ b/include/media/ICrypto.h @@ -41,7 +41,7 @@ struct ICrypto : public IInterface { virtual bool requiresSecureDecoderComponent( const char *mime) const = 0; - virtual status_t decrypt( + virtual ssize_t decrypt( bool secure, const uint8_t key[16], const uint8_t iv[16], -- cgit v1.2.3