{"id":1329,"url":"https://patchwork.libcamera.org/api/covers/1329/?format=json","web_url":"https://patchwork.libcamera.org/cover/1329/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190602130435.18780-1-jacopo@jmondi.org>","date":"2019-06-02T13:04:29","name":"[libcamera-devel,0/6] libcamera: v4l2_controls: Add support for V4L2 controls","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/cover/1329/mbox/","series":[{"id":333,"url":"https://patchwork.libcamera.org/api/series/333/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=333","date":"2019-06-02T13:04:29","name":"libcamera: v4l2_controls: Add support for V4L2 controls","version":1,"mbox":"https://patchwork.libcamera.org/series/333/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/1329/comments/","headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay11.mail.gandi.net (relay11.mail.gandi.net\n\t[217.70.178.231])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2D56260BFA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun,  2 Jun 2019 15:03:42 +0200 (CEST)","from uno.homenet.telecomitalia.it (unknown [79.35.79.123])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay11.mail.gandi.net (Postfix) with ESMTPSA id 85118100004;\n\tSun,  2 Jun 2019 13:03:41 +0000 (UTC)"],"From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Sun,  2 Jun 2019 15:04:29 +0200","Message-Id":"<20190602130435.18780-1-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.21.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 0/6] libcamera: v4l2_controls: Add support\n\tfor V4L2 controls","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Sun, 02 Jun 2019 13:03:42 -0000"},"content":"Hello,\n  this series implement support for V4L2 Controls through the V4L2 Extended\nControls APIs.\n\nThe series provide a base class for V4L2Device and V4L2Subdevice where the\ncontrol support will be implemented, as it is common between devices and\nsubdevices. After this, V4L2Controls are defined, by using a base template class\nspecialized by derived classes meant to be used to access the control value.\n\nUsing the defined data types, support to get and set a single or a list of\ncontrols is added to the V4L2base class, to be shared by both V4L2Device and\nV4L2Subdevice implementations.\n\nFinally, controls are used to set the IPU3 pipe mode, and in a final example\npatch not meant to be merged a list of control is applied to the camera sensor.\n\nTested on IPU3 Soraka, by inspecting the control values before and after running\nthe IPU3 pipeline handler.\n\nThanks\n   j\n\nJacopo Mondi (6):\n  libcamera: camera_sensor: Add dev() operation\n  libcamera: Provide a V4L2Base class\n  libcamera: Add V4L2Controls\n  libcamera: v4l2_base: Add V4L2 control support\n  libcamera: ipu3: Set pipe_mode based on stream configuration\n  [HACK] ipu3: Set and get a few sensor controls\n\n src/libcamera/camera_sensor.cpp        |   6 +\n src/libcamera/include/camera_sensor.h  |   1 +\n src/libcamera/include/v4l2_base.h      |  43 +++\n src/libcamera/include/v4l2_controls.h  | 147 ++++++++++\n src/libcamera/include/v4l2_device.h    |   9 +-\n src/libcamera/include/v4l2_subdevice.h |   9 +-\n src/libcamera/meson.build              |   3 +\n src/libcamera/pipeline/ipu3/ipu3.cpp   | 116 ++++++++\n src/libcamera/v4l2_base.cpp            | 354 +++++++++++++++++++++++++\n src/libcamera/v4l2_controls.cpp        | 301 +++++++++++++++++++++\n src/libcamera/v4l2_device.cpp          |  13 +-\n src/libcamera/v4l2_subdevice.cpp       |  12 +-\n 12 files changed, 984 insertions(+), 30 deletions(-)\n create mode 100644 src/libcamera/include/v4l2_base.h\n create mode 100644 src/libcamera/include/v4l2_controls.h\n create mode 100644 src/libcamera/v4l2_base.cpp\n create mode 100644 src/libcamera/v4l2_controls.cpp\n\n--\n2.21.0"}