{"id":3209,"url":"https://patchwork.libcamera.org/api/1.1/patches/3209/?format=json","web_url":"https://patchwork.libcamera.org/patch/3209/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20200320014839.14683-2-laurent.pinchart@ideasonboard.com>","date":"2020-03-20T01:48:29","name":"[libcamera-devel,v3,01/11,DNI] include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric devices","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"40c8952a1fc47416bbdf37ebc8324f357e8513ae","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3209/mbox/","series":[{"id":749,"url":"https://patchwork.libcamera.org/api/1.1/series/749/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=749","date":"2020-03-20T01:48:28","name":"Simple pipeline handler","version":3,"mbox":"https://patchwork.libcamera.org/series/749/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3209/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3209/checks/","tags":{},"headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0338560418\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 20 Mar 2020 02:48:52 +0100 (CET)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 691A99C0;\n\tFri, 20 Mar 2020 02:48:51 +0100 (CET)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1584668931;\n\tbh=N8Wd1RXvXaepZeynUnAt+46D7n8LgtQ8RidmVeAPp+c=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=JORDAwYnofw0zwsD/FdLSA8fVW0GmODXY1/W3j4Az1txkdJcBtLbSSlXbOA7+XJ7u\n\tePEvrS23Yb4znjUU+Fk3/Wplet2eiZMiMVjaRcXlxmGDE4TBpGu/hmBl0ttC14HuXZ\n\t6zJI3zH8QgHmSb3tL3eOToePbZR3MGTyxr9YFbZg=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Martijn Braam <martijn@brixit.nl>,\n\tBenjamin GAIGNARD <benjamin.gaignard@st.com>,\n\tAndrey Konovalov <andrey.konovalov@linaro.org>","Date":"Fri, 20 Mar 2020 03:48:29 +0200","Message-Id":"<20200320014839.14683-2-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.24.1","In-Reply-To":"<20200320014839.14683-1-laurent.pinchart@ideasonboard.com>","References":"<20200320014839.14683-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v3 01/11] [DNI] include: linux: Extend\n\tVIDIOC_ENUM_FMT to support MC-centric devices","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","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":"Fri, 20 Mar 2020 01:48:52 -0000"},"content":"This is an experimental change that hasn't been accepted in mainline\nyet. The commit corresponds to the userspace API extensions from v6 1/5\nand 2/5, as posted to the linux-media mailing list ([1]).\n\n[1] https://lore.kernel.org/linux-media/20200319004701.30416-1-laurent.pinchart@ideasonboard.com/\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n include/linux/videodev2.h | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)","diff":"diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h\nindex ab40b3272ed2..66f34fc05e3e 100644\n--- a/include/linux/videodev2.h\n+++ b/include/linux/videodev2.h\n@@ -476,6 +476,8 @@ struct v4l2_capability {\n \n #define V4L2_CAP_TOUCH                  0x10000000  /* Is a touch device */\n \n+#define V4L2_CAP_IO_MC\t\t\t0x20000000  /* Is input/output controlled by the media controller */\n+\n #define V4L2_CAP_DEVICE_CAPS            0x80000000  /* sets device capabilities field */\n \n /*\n@@ -769,7 +771,8 @@ struct v4l2_fmtdesc {\n \t__u32               flags;\n \t__u8\t\t    description[32];   /* Description string */\n \t__u32\t\t    pixelformat;       /* Format fourcc      */\n-\t__u32\t\t    reserved[4];\n+\t__u32\t\t    mbus_code;\t\t/* Media bus code    */\n+\t__u32\t\t    reserved[3];\n };\n \n #define V4L2_FMT_FLAG_COMPRESSED\t\t0x0001\n","prefixes":["libcamera-devel","v3","01/11","DNI"]}