From patchwork Fri Mar 20 01:48:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3209 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0338560418 for ; Fri, 20 Mar 2020 02:48:52 +0100 (CET) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 691A99C0; Fri, 20 Mar 2020 02:48:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1584668931; bh=N8Wd1RXvXaepZeynUnAt+46D7n8LgtQ8RidmVeAPp+c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JORDAwYnofw0zwsD/FdLSA8fVW0GmODXY1/W3j4Az1txkdJcBtLbSSlXbOA7+XJ7u ePEvrS23Yb4znjUU+Fk3/Wplet2eiZMiMVjaRcXlxmGDE4TBpGu/hmBl0ttC14HuXZ 6zJI3zH8QgHmSb3tL3eOToePbZR3MGTyxr9YFbZg= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Cc: Martijn Braam , Benjamin GAIGNARD , Andrey Konovalov 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 Subject: [libcamera-devel] [PATCH v3 01/11] [DNI] include: linux: Extend VIDIOC_ENUM_FMT to support MC-centric devices X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2020 01:48:52 -0000 This is an experimental change that hasn't been accepted in mainline yet. The commit corresponds to the userspace API extensions from v6 1/5 and 2/5, as posted to the linux-media mailing list ([1]). [1] https://lore.kernel.org/linux-media/20200319004701.30416-1-laurent.pinchart@ideasonboard.com/ Signed-off-by: Laurent Pinchart --- include/linux/videodev2.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index ab40b3272ed2..66f34fc05e3e 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h @@ -476,6 +476,8 @@ struct v4l2_capability { #define V4L2_CAP_TOUCH 0x10000000 /* Is a touch device */ +#define V4L2_CAP_IO_MC 0x20000000 /* Is input/output controlled by the media controller */ + #define V4L2_CAP_DEVICE_CAPS 0x80000000 /* sets device capabilities field */ /* @@ -769,7 +771,8 @@ struct v4l2_fmtdesc { __u32 flags; __u8 description[32]; /* Description string */ __u32 pixelformat; /* Format fourcc */ - __u32 reserved[4]; + __u32 mbus_code; /* Media bus code */ + __u32 reserved[3]; }; #define V4L2_FMT_FLAG_COMPRESSED 0x0001