{"id":1813,"url":"https://patchwork.libcamera.org/api/patches/1813/?format=json","web_url":"https://patchwork.libcamera.org/patch/1813/","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":"<20190817105937.29353-2-jacopo@jmondi.org>","date":"2019-08-17T10:59:33","name":"[libcamera-devel,1/5,TEMP] include: linux: Update v4l2-controls.h","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"62064164fa5489387cd178e386e7dad7c4b59197","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/1813/mbox/","series":[{"id":462,"url":"https://patchwork.libcamera.org/api/series/462/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=462","date":"2019-08-17T10:59:32","name":"libcamera: camera_sensor: Collect camera location and sizes","version":1,"mbox":"https://patchwork.libcamera.org/series/462/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/1813/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/1813/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7B0FF600F9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 17 Aug 2019 12:58:16 +0200 (CEST)","from uno.homenet.telecomitalia.it\n\t(host64-130-dynamic.5-87-r.retail.telecomitalia.it [87.5.130.64])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id F0EBE1C0002;\n\tSat, 17 Aug 2019 10:58:15 +0000 (UTC)"],"X-Originating-IP":"87.5.130.64","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Sat, 17 Aug 2019 12:59:33 +0200","Message-Id":"<20190817105937.29353-2-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.22.0","In-Reply-To":"<20190817105937.29353-1-jacopo@jmondi.org>","References":"<20190817105937.29353-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 1/5] [TEMP] include: linux: Update\n\tv4l2-controls.h","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":"Sat, 17 Aug 2019 10:58:16 -0000"},"content":"Import a temporary version of the v4l2-controls.h with the newly added\ndefinition of V4L2_CID_CAMERA_SENSOR_LOCATION control.\n\nThis patch should be temporary applied waiting for the newly added\ncontrol to land in the mainline kernel version.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/linux/v4l2-controls.h | 5 +++++\n 1 file changed, 5 insertions(+)","diff":"diff --git a/include/linux/v4l2-controls.h b/include/linux/v4l2-controls.h\nindex 06479f2fb3ae..1d39129cb7d3 100644\n--- a/include/linux/v4l2-controls.h\n+++ b/include/linux/v4l2-controls.h\n@@ -881,6 +881,11 @@ enum v4l2_auto_focus_range {\n #define V4L2_CID_PAN_SPEED\t\t\t(V4L2_CID_CAMERA_CLASS_BASE+32)\n #define V4L2_CID_TILT_SPEED\t\t\t(V4L2_CID_CAMERA_CLASS_BASE+33)\n \n+#define V4L2_CID_CAMERA_SENSOR_LOCATION\t\t(V4L2_CID_CAMERA_CLASS_BASE+34)\n+#define V4L2_LOCATION_FRONT\t\t\t0\n+#define V4L2_LOCATION_BACK\t\t\t1\n+#define V4L2_LOCATION_EXTERNAL\t\t\t2\n+\n /* FM Modulator class control IDs */\n \n #define V4L2_CID_FM_TX_CLASS_BASE\t\t(V4L2_CTRL_CLASS_FM_TX | 0x900)\n","prefixes":["libcamera-devel","1/5","TEMP"]}