Commit ec7e4648 authored by Enrico Scholz's avatar Enrico Scholz

onsemi-core: added extra option for default crop area

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 60821606
......@@ -2271,6 +2271,9 @@ static int onsemi_get_selection(struct v4l2_subdev *sd,
break;
case V4L2_SEL_TGT_CROP_DEFAULT:
s->r = limits->default_crop;
break;
case V4L2_SEL_TGT_CROP_BOUNDS:
s->r = (struct v4l2_rect) {
.left = limits->x.min,
......
......@@ -92,6 +92,8 @@ struct onsemi_limits {
struct onsemi_range pix_clk;
struct onsemi_range op_clk;
struct v4l2_rect default_crop;
struct onsemi_range f_serial;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment