summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorvivek mehta <mvivek@codeaurora.org>2015-09-25 12:34:54 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-10-06 15:18:47 -0700
commit0fd6af1ec4fd05275a48427d05883d8bdd4cce1a (patch)
tree1b87fb9907e496137579fdf6e95eb3e39adf0352 /services/audioflinger/AudioFlinger.cpp
parentb3f0834aa448d6b4bf8dbddaff4fbcefa3ede422 (diff)
downloadframeworks_av-0fd6af1ec4fd05275a48427d05883d8bdd4cce1a.zip
frameworks_av-0fd6af1ec4fd05275a48427d05883d8bdd4cce1a.tar.gz
frameworks_av-0fd6af1ec4fd05275a48427d05883d8bdd4cce1a.tar.bz2
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
Diffstat (limited to 'services/audioflinger/AudioFlinger.cpp')
-rw-r--r--services/audioflinger/AudioFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
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>& 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)
{