From 70adc5b3c66961a8e297c6a51f4439447d32472f Mon Sep 17 00:00:00 2001 From: Dhanalakshmi Siddani Date: Thu, 27 Aug 2015 17:44:13 +0530 Subject: audioflinger: increase client heap size to 2MB - Playback of 24 bit 192kHz clips fails during device switch between wired headset and BT when repeat track is enabled. - 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 2MB to ensure that there is always a free chunk to accommodate the requested size. CRs-Fixed: 855910 Change-Id: I2eb18b15557fa264fb66ff282746cad4e6c718f7 --- services/audioflinger/AudioFlinger.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'services/audioflinger/AudioFlinger.cpp') diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index e077dff..4b73d73 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -1376,11 +1376,10 @@ 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(1028*1024, "AudioFlinger::Client")), //1MB + 1 more 4k page + mMemoryDealer(new MemoryDealer(2052*1024, "AudioFlinger::Client")), //2MB + 1 more 4k page mPid(pid), mTimedTrackCount(0) { - // 1 MB of address space is good for 32 tracks, 8 buffers each, 4 KB/buffer } // Client destructor must be called with AudioFlinger::mClientLock held -- cgit v1.1