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

Commit 31c089f0 authored by Phil Burk's avatar Phil Burk Committed by Presubmit Automerger Backend
Browse files

[automerge] aaudio: reduce aaudio.min_sleep_usec default 2p: 4f578a29

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/16946345

Bug: 220364385
Change-Id: I431dc4f79df9c843936e7ee91c154020edd0160a
parents 0aa08f1f 4f578a29
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -560,9 +560,10 @@ int32_t AAudioProperty_getWakeupDelayMicros() {
}

int32_t AAudioProperty_getMinimumSleepMicros() {
    const int32_t minMicros = 20; // arbitrary
    const int32_t defaultMicros = 200; // arbitrary
    const int32_t maxMicros = 2000; // arbitrary
    const int32_t minMicros = 1; // arbitrary
    // Higher values can increase latency for moderate workloads.
    const int32_t defaultMicros = 1; // arbitrary
    const int32_t maxMicros = 200; // arbitrary
    int32_t prop = property_get_int32(AAUDIO_PROP_MINIMUM_SLEEP_USEC, defaultMicros);
    if (prop < minMicros) {
        ALOGW("AAudioProperty_getMinimumSleepMicros: clipped %d to %d", prop, minMicros);