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

Commit ea5c49e1 authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: less alarming message for MMAP

Bug: 80192689
Test: adb logcat | grep MMAP
Test: run OboeTester, TEST OUTPUT, perfMode: None, OPEN
Test: should see "MMAP not available because
Test:         AAUDIO_PERFORMANCE_MODE_LOW_LATENCY not used"
Change-Id: I164902abcfafb53a34685b9ef9ec5346842e1dda
parent 3b4c1f03
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -142,14 +142,14 @@ aaudio_result_t AudioStreamBuilder::build(AudioStream** streamPtr) {
    // TODO Support other performance settings in MMAP mode.
    // Disable MMAP if low latency not requested.
    if (getPerformanceMode() != AAUDIO_PERFORMANCE_MODE_LOW_LATENCY) {
        ALOGD("%s() MMAP not available because AAUDIO_PERFORMANCE_MODE_LOW_LATENCY not used.",
        ALOGD("%s() MMAP not used because AAUDIO_PERFORMANCE_MODE_LOW_LATENCY not requested.",
              __func__);
        allowMMap = false;
    }

    // SessionID and Effects are only supported in Legacy mode.
    if (getSessionId() != AAUDIO_SESSION_ID_NONE) {
        ALOGD("%s() MMAP not available because sessionId used.", __func__);
        ALOGD("%s() MMAP not used because sessionId specified.", __func__);
        allowMMap = false;
    }