MLK-20694: media: m2m: add control for querying minimum buffer for capture and output
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Tue, 19 Mar 2019 09:29:01 +0000 (17:29 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Add V4L2_CID_MIN_BUFFERS_FOR_CAPTURE and V4L2_CID_MIN_BUFFERS_FOR_OUTPUT control
ID for querying minimum buffer for capture and output

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/media/platform/imx8/mxc-isi-core.h

index c26060c..7142aa9 100644 (file)
@@ -173,6 +173,8 @@ struct mxc_isi_ctrls {
        struct v4l2_ctrl *hflip;
        struct v4l2_ctrl *vflip;
        struct v4l2_ctrl *alpha;
+       struct v4l2_ctrl *num_cap_buf;
+       struct v4l2_ctrl *num_out_buf;
        bool ready;
 };
 
@@ -291,6 +293,8 @@ struct mxc_isi_dev {
        u32 interface[MAX_PORTS];
        u32 flags;
        u32 skip_m2m;
+       u32 req_cap_buf_num;
+       u32 req_out_buf_num;
        u8 chain_buf;
 
        atomic_t open_count;