On (22/05/26 14:07), Yunke Cao wrote: > > Implement support for ROI as described in UVC 1.5: > 4.2.2.1.20 Digital Region of Interest (ROI) Control > > ROI control is implemented using V4L2 control API as > two uvc-specific controls: > V4L2_CID_UVC_REGION_OF_INTEREST_RECT and > V4L2_CID_UVC_REGION_OF_INTEREST_AUTO. Just for information, several nitpicks from checkpatch CHECK: Alignment should match open parenthesis #75: FILE: drivers/media/usb/uvc/uvc_ctrl.c:781: +static void uvc_to_v4l2_rect(struct v4l2_rect *v4l2_rect, + const struct uvc_rect *uvc_rect) CHECK: Alignment should match open parenthesis #84: FILE: drivers/media/usb/uvc/uvc_ctrl.c:790: +static int v4l2_to_uvc_rect(struct uvc_rect *uvc_rect, + const struct v4l2_rect *v4l2_rect) CHECK: Alignment should match open parenthesis #146: FILE: drivers/media/usb/uvc/uvc_ctrl.c:1075: + xctrl->value = __uvc_ctrl_get_value(mapping, uvc_ctrl_data(ctrl, UVC_CTRL_DATA_CURRENT)); CHECK: Alignment should match open parenthesis #204: FILE: drivers/media/usb/uvc/uvc_ctrl.c:1604: + uvc_ctrl_fill_event(handle->chain, &ev, ctrl, mapping, + xctrl.value, changes); CHECK: Alignment should match open parenthesis #277: FILE: drivers/media/usb/uvc/uvc_ctrl.c:1894: + ret = copy_from_user(&v4l2_rect, xctrl->p_rect, + sizeof(v4l2_rect)); CHECK: spaces preferred around that '+' (ctx:VxV) #455: FILE: include/uapi/linux/uvcvideo.h:41: +#define V4L2_CID_UVC_REGION_OF_INTEREST_RECT (V4L2_CID_CAMERA_UVC_BASE+1) ^ CHECK: spaces preferred around that '+' (ctx:VxV) #456: FILE: include/uapi/linux/uvcvideo.h:42: +#define V4L2_CID_UVC_REGION_OF_INTEREST_AUTO (V4L2_CID_CAMERA_UVC_BASE+2) ^