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

Commit 18d1e6c0 authored by millerliang's avatar millerliang
Browse files

aaudio: return result of createMmapBuffer

Return result of createMmapBuffer in openWithFormat.
If the restult is not AAUDIO_OK, it will retry to open
with other formats.

Bug: 216659054
Test: OboeTester -> TEST INPUT
Change-Id: I6da2f09a9c6aa5c74bf8a3833c89148334960335
parent e1c4aaf3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -186,7 +186,8 @@ aaudio_result_t AAudioServiceEndpointMMAP::openWithFormat(audio_format_t audioFo
    ALOGD("%s() deviceId = %d, sessionId = %d", __func__, getDeviceId(), getSessionId());

    // Create MMAP/NOIRQ buffer.
    if (createMmapBuffer(&mAudioDataFileDescriptor) != AAUDIO_OK) {
    result = createMmapBuffer(&mAudioDataFileDescriptor);
    if (result != AAUDIO_OK) {
        goto error;
    }