mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
media: v4l2-subdev: Fix stream handling for crop API
When support for streams was added to the V4L2 subdev API, the
v4l2_subdev_crop structure was extended with a stream field, but the
field was not handled in the core code that translates the
VIDIOC_SUBDEV_[GS]_CROP ioctls to the selection API. Fix it.
Fixes: 2f91e10ee6
("media: subdev: add stream based configuration")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
8a9d420149
commit
34d7bf1c8e
@ -765,6 +765,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg,
|
||||
memset(&sel, 0, sizeof(sel));
|
||||
sel.which = crop->which;
|
||||
sel.pad = crop->pad;
|
||||
sel.stream = crop->stream;
|
||||
sel.target = V4L2_SEL_TGT_CROP;
|
||||
|
||||
rval = v4l2_subdev_call(
|
||||
@ -789,6 +790,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg,
|
||||
memset(&sel, 0, sizeof(sel));
|
||||
sel.which = crop->which;
|
||||
sel.pad = crop->pad;
|
||||
sel.stream = crop->stream;
|
||||
sel.target = V4L2_SEL_TGT_CROP;
|
||||
sel.r = crop->rect;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user