OSDN Git Service

media: staging: rkisp1: rsz: return to userspace the crop value in bayer mainpath
authorHelen Koike <helen.koike@collabora.com>
Thu, 6 Feb 2020 22:07:11 +0000 (23:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 16:40:42 +0000 (17:40 +0100)
If bayer format is set in mainpath, then crop is not supported.
The core was just resetting crop but wasn't returning the values back to
user space.

Return values taken in consideration by the driver to userpace.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-resizer.c

index d986953..9de6744 100644 (file)
@@ -503,6 +503,8 @@ static void rkisp1_rsz_set_sink_crop(struct rkisp1_resizer *rsz,
                sink_crop->top = 0;
                sink_crop->width = sink_fmt->width;
                sink_crop->height = sink_fmt->height;
+
+               *r = *sink_crop;
                return;
        }