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

Commit a170e61f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "aaudio: less alarming message for MMAP"

parents f1de76e5 ea5c49e1
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;
    }