This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: v4l2-subdev: Fix stream handling for crop API
Author:  Laurent Pinchart <laurent.pinch...@ideasonboard.com>
Date:    Tue Apr 2 02:37:25 2024 +0300

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.pinch...@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkei...@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ai...@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 drivers/media/v4l2-core/v4l2-subdev.c | 2 ++
 1 file changed, 2 insertions(+)

---

diff --git a/drivers/media/v4l2-core/v4l2-subdev.c 
b/drivers/media/v4l2-core/v4l2-subdev.c
index 6572667fd5c4..0f590c9dc6ca 100644
--- a/drivers/media/v4l2-core/v4l2-subdev.c
+++ b/drivers/media/v4l2-core/v4l2-subdev.c
@@ -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;
 

Reply via email to