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

Commit 330845f2 authored by Jaideep Sharma's avatar Jaideep Sharma Committed by Andy Hung
Browse files

AudioFlinger: Change timeout for FdToString.

Current implementation waits for 200 msec,
which leads to delay during boot time and other cases
where we close outputs and inputs.
Reduce this time to 2 msecs.

Bug: 171365312
Bug: 172293721
CRs-Fixed: 2776028
Test: See bug for specifics on device and test.
Test: adb shell dumpsys media.audio_flinger
Change-Id: Ia08e8431d36e168bb4a2301cfbd9545f354fa811
parent bf1cb79c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3141,7 +3141,8 @@ std::vector<sp<AudioFlinger::EffectModule>> AudioFlinger::purgeStaleEffects_l()
// dumpToThreadLog_l() must be called with AudioFlinger::mLock held
void AudioFlinger::dumpToThreadLog_l(const sp<ThreadBase> &thread)
{
    audio_utils::FdToString fdToString;
    constexpr int THREAD_DUMP_TIMEOUT_MS = 2;
    audio_utils::FdToString fdToString("- ", THREAD_DUMP_TIMEOUT_MS);
    const int fd = fdToString.fd();
    if (fd >= 0) {
        thread->dump(fd, {} /* args */);