Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 2f91e10ee6fd ("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>

authored by

Laurent Pinchart and committed by
Hans Verkuil
34d7bf1c 8a9d4201

+2
+2
drivers/media/v4l2-core/v4l2-subdev.c
··· 765 765 memset(&sel, 0, sizeof(sel)); 766 766 sel.which = crop->which; 767 767 sel.pad = crop->pad; 768 + sel.stream = crop->stream; 768 769 sel.target = V4L2_SEL_TGT_CROP; 769 770 770 771 rval = v4l2_subdev_call( ··· 790 789 memset(&sel, 0, sizeof(sel)); 791 790 sel.which = crop->which; 792 791 sel.pad = crop->pad; 792 + sel.stream = crop->stream; 793 793 sel.target = V4L2_SEL_TGT_CROP; 794 794 sel.r = crop->rect; 795 795