diff options
author | Sakari Ailus <[email protected]> | 2014-11-16 11:48:31 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2014-12-04 12:38:41 -0200 |
commit | 21734b06430a935073ba11e3caa231cbf4fccb13 (patch) | |
tree | 060e71a1e918c407a2592e180d56d82a07935907 | |
parent | 8af0345926c8cdbbf80102aa3eab8a6519c23272 (diff) |
[media] smiapp: Set left and top to zero for crop bounds selection
The fields were previously uninitialised, leaving the returned values to
where the user had set them. This was never the intention.
Signed-off-by: Sakari Ailus <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c index 193af1c82d37..022ad44b5e6c 100644 --- a/drivers/media/i2c/smiapp/smiapp-core.c +++ b/drivers/media/i2c/smiapp/smiapp-core.c @@ -2191,6 +2191,7 @@ static int __smiapp_get_selection(struct v4l2_subdev *subdev, switch (sel->target) { case V4L2_SEL_TGT_CROP_BOUNDS: if (ssd == sensor->pixel_array) { + sel->r.left = sel->r.top = 0; sel->r.width = sensor->limits[SMIAPP_LIMIT_X_ADDR_MAX] + 1; sel->r.height = |