From 0fd6af1ec4fd05275a48427d05883d8bdd4cce1a Mon Sep 17 00:00:00 2001 From: vivek mehta Date: Fri, 25 Sep 2015 12:34:54 -0700 Subject: audioflinger: increase client heap size to 4 MB - Memory allocation for AudioTrack fails because the heap gets fragmented and free chunks of the size requested are not available. - Increase the current heap size to 4 MB to ensure that there is always a free chunk to accommodate the requested size. Change-Id: Idf0d3e6c2abbf2f0fa048885acb3200d2a7c16b7 --- services/audioflinger/AudioFlinger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index c7f863b..d7af22c 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -1376,7 +1376,7 @@ AudioFlinger::Client::Client(const sp& audioFlinger, pid_t pid) : RefBase(), mAudioFlinger(audioFlinger), // FIXME should be a "k" constant not hard-coded, in .h or ro. property, see 4 lines below - mMemoryDealer(new MemoryDealer(2052*1024, "AudioFlinger::Client")), //2MB + 1 more 4k page + mMemoryDealer(new MemoryDealer(4100*1024, "AudioFlinger::Client")), //4MB + 1 more 4k page mPid(pid), mTimedTrackCount(0) { -- cgit v1.1