summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.cpp
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2014-12-10 19:04:08 -0800
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:20 -0600
commit04215532c2d6b4be11b94f336d51e1c6ab32ab3f (patch)
tree751e0fefca2b34b1bdee8ec978a2bed5b2693a90 /services/audioflinger/AudioFlinger.cpp
parent5a68fc340e5b61ec29d8283433ddb003d6871abc (diff)
downloadframeworks_av-04215532c2d6b4be11b94f336d51e1c6ab32ab3f.zip
frameworks_av-04215532c2d6b4be11b94f336d51e1c6ab32ab3f.tar.gz
frameworks_av-04215532c2d6b4be11b94f336d51e1c6ab32ab3f.tar.bz2
audioflinger: Increase Client heap size
This increase is needed to accommodate higher sampling rate clip playback over devices like BT and to support gapless playback with larger buffer sizes. In both cases, the cblk memory allocated for a track can be high enough that a new allocation (either due to restoreTrack_l or opening a new track) can fail. Change-Id: I96f674706184f029259802d5552f5ceeebc689c1 CRs-Fixed: 768106
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 9ec5802..751c6b0 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -1353,7 +1353,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(1024*1024, "AudioFlinger::Client")),
+ mMemoryDealer(new MemoryDealer(1028*1024, "AudioFlinger::Client")), //1MB + 1 more 4k page
mPid(pid),
mTimedTrackCount(0)
{