diff options
author | Dhanalakshmi Siddani <dsiddani@codeaurora.org> | 2015-08-27 17:44:13 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:24:49 -0600 |
commit | 70adc5b3c66961a8e297c6a51f4439447d32472f (patch) | |
tree | 70769fbac236b78eb2751176a8f08be3009af83d /services | |
parent | b9fb5f42bc4a40f3be5a7a9b2c57bf6b604aea7e (diff) | |
download | frameworks_av-70adc5b3c66961a8e297c6a51f4439447d32472f.zip frameworks_av-70adc5b3c66961a8e297c6a51f4439447d32472f.tar.gz frameworks_av-70adc5b3c66961a8e297c6a51f4439447d32472f.tar.bz2 |
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
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioFlinger.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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>& 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 |