From aba407f1a6378ac2518d0d76d0d18419b7722a81 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 20 Aug 2015 16:18:53 -0700 Subject: audioflinger: increase shared memory heap size Bug: 21093153. Change-Id: I389af11451b01ce49fdb8957e2f322ba1925a62e (cherry picked from commit da73b6c7474aaa5616f0214e238776f12717f32b) --- services/audioflinger/AudioFlinger.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 20c34ef..08fa70d 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -88,6 +88,12 @@ class ServerProxy; static const nsecs_t kDefaultStandbyTimeInNsecs = seconds(3); + +// Max shared memory size for audio tracks and audio records per client process +static const size_t kClientSharedHeapSizeBytes = 1024*1024; +// Shared memory size multiplier for non low ram devices +static const size_t kClientSharedHeapSizeMultiplier = 4; + #define INCLUDING_FROM_AUDIOFLINGER_H class AudioFlinger : @@ -423,7 +429,7 @@ private: Client(const Client&); Client& operator = (const Client&); const sp mAudioFlinger; - const sp mMemoryDealer; + sp mMemoryDealer; const pid_t mPid; Mutex mTimedTrackLock; -- cgit v1.1