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

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

fix ENABLE_TREBLE build broken by commit af35aadb

Test: build marlin-eng with and without ENABLE_TREBLE
Change-Id: Ia8cd2c8b01e2e14557b65ae8ce9c9c4827f596f5
parent be154ab3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ status_t StreamHalHidl::createMmapBuffer(int32_t minSizeFrames,
            [&](Result r, const MmapBufferInfo& hidlInfo) {
                retval = r;
                if (retval == Result::OK) {
                    native_handle *handle = hidlInfo.sharedMemory->handle();
                    const native_handle *handle = hidlInfo.sharedMemory.handle();
                    if (handle->numFds > 0) {
                        info->shared_memory_fd = dup(handle->data[0]);
                        info->buffer_size_frames = hidlInfo.bufferSizeFrames;