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

Skip to content
Commit f8e28fb9 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: fix acquire fence FD double close

This patch fixes several issues:
* Change the timing the acquire fence FD is closed: we used to
  close the FD when the buffer is returned from HAL. This patch
  changes that to after the request is sent to HAL (or failed
  to send to HAL)
* Cleanup inflight buffer map if the request fails to be sent to
  HAL
* With the CL, the acquire fence FDs are now closed by
    - HalInterface::processBatchCaptureRequests if the HIDL
      processCaptureRequests call succeeds and HAL is running
      in binderized mode (for passthrough mode the FD is owned
      by HAL if the HIDL call succeeds)
    - Camera3Device::cleanupFailedRequests otherwise

Test: Camera CTS tests
Bug: 132594861
Change-Id: I5f67ae9e7b8008738bd9a24246d754a6a3669b0c
parent 11648852
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment