]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: v4l2-subdev: Fix stream handling for crop API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 1 Apr 2024 23:37:25 +0000 (02:37 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2024 13:15:31 +0000 (15:15 +0200)
commit34d7bf1c8e59f5fbf438ee32c96389ebe41ca2e8
tree78b3fb4af3e01dc170abda0b221cb4bd50e65449
parent8a9d420149c477e7c97fbd6453704e4612bdd3fa
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>
drivers/media/v4l2-core/v4l2-subdev.c