[v2,0/1] Add request API support for MediaDevice
mbox series

Message ID 20241106173651.2859827-1-chenghaoyang@chromium.org
Headers show
Series
  • Add request API support for MediaDevice
Related show

Message

Cheng-Hao Yang Nov. 6, 2024, 5:35 p.m. UTC
Hi folks,

This patch adds ioctl request API support for MediaDevice. It'll be used
to queue requests into mtkisp7's ISPs, like Camsys, Imgsys, and AieDev:
https://source.chromium.org/search?q=allocateRequests&sq=&ss=chromiumos%2Fchromiumos%2Fcodesearch:src%2Fthird_party%2Flibcamera%2Fmtkisp7%2Fsrc%2Flibcamera%2Fpipeline%2Fmtkisp7%2F

This patch passed gitlab pipeline:
https://gitlab.freedesktop.org/chenghaoyang/libcamera/-/pipelines/1305356

v2:
- Introduced a new class: MediaDevice::Request.
  - Handles reinit internally.
- Used non-blocking EventNotifier instead of polling.

BR,
Harvey

Han-Lin Chen (1):
  libcamera: Add request API support for media controller device

 include/libcamera/internal/media_device.h |  26 ++++++
 src/libcamera/media_device.cpp            | 106 ++++++++++++++++++++++
 2 files changed, 132 insertions(+)