[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200206220712.1243438-4-helen.koike@collabora.com>
Date: Thu, 6 Feb 2020 19:07:11 -0300
From: Helen Koike <helen.koike@...labora.com>
To: linux-media@...r.kernel.org
Cc: dafna.hirschfeld@...labora.com, hverkuil@...all.nl,
linux-rockchip@...ts.infradead.org, mchehab@...nel.org,
linux-kernel@...r.kernel.org, kernel@...labora.com,
Helen Koike <helen.koike@...labora.com>
Subject: [PATCH] media: staging: rkisp1: rsz: return to userspace the crop value in bayer mainpath
If bayer format is set in mainpath, then crop is not supported.
The core was just reseting 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@...labora.com>
---
drivers/staging/media/rkisp1/rkisp1-resizer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/media/rkisp1/rkisp1-resizer.c b/drivers/staging/media/rkisp1/rkisp1-resizer.c
index d986953d268b..9de6744f0900 100644
--- a/drivers/staging/media/rkisp1/rkisp1-resizer.c
+++ b/drivers/staging/media/rkisp1/rkisp1-resizer.c
@@ -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;
}
--
2.24.0
Powered by blists - more mailing lists