Hi Philipp, On Tue, Nov 06, 2018 at 03:44:07PM +0100, Philipp Zabel wrote: > Hi Sakari, > > On Tue, 2018-11-06 at 16:01 +0200, Sakari Ailus wrote: > [...] > > @@ -290,6 +294,35 @@ static int capture_s_std(struct file *file, void *fh, v4l2_std_id std) > > > return v4l2_subdev_call(priv->src_sd, video, s_std, std); > > > } > > > > > > +static int capture_g_selection(struct file *file, void *fh, > > > + struct v4l2_selection *s) > > > +{ > > > + struct capture_priv *priv = video_drvdata(file); > > > + > > > + switch (s->target) { > > > + case V4L2_SEL_TGT_CROP: > > > + case V4L2_SEL_TGT_CROP_DEFAULT: > > > + case V4L2_SEL_TGT_CROP_BOUNDS: > > > + case V4L2_SEL_TGT_NATIVE_SIZE: > > > > The NATIVE_SIZE is for devices such as sensors. It doesn't make sense here. > > Should this be documented in Documentation/media/uapi/v4l/v4l2- > selection-targets.rst ? There it only mentions when to make it > writeable. This seems to have originated from the documentation before the ReST conversion and I had hard time to figure out where the current text (apart from sensor pixel array) came from. There is also no driver using it in that meaning, and I doubt if the use is not already been covered by the compose rectangle. This indeed requires some follow-up, but that's out of scope of your set. -- Kind regards, Sakari Ailus e-mail: sakari.ailus@xxxxxx