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

Commit a6f40c84 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio: fix IStream.createMmapBuffer()

Do not close the native fd for shared memory passed by
the legacy HAL as it is owned by tinyalsa implementation.

Test: test MMAP NO IRQ playback and capture streams
Bug: 31458351
Change-Id: Ie0c2a38574e5ac5c13fdb8a5c81fd02cf7d0e47a
parent da0d1a1d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -146,7 +146,6 @@ Return<void> StreamMmap<T>::createMmapBuffer(int32_t minSizeFrames, size_t frame
    }
    _hidl_cb(retval, info);
    if (hidlHandle != nullptr) {
        native_handle_close(hidlHandle);
        native_handle_delete(hidlHandle);
    }
    return Void();