Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70adc5b3 authored by Dhanalakshmi Siddani's avatar Dhanalakshmi Siddani Committed by Linux Build Service Account
Browse files

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
parent b9fb5f42
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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