From 02a2dbb91c754c366272bfbceffdb6ecafea556e Mon Sep 17 00:00:00 2001 From: Cai YiWei Date: Tue, 9 May 2023 10:53:28 +0800 Subject: [PATCH] media: rockchip: isp: force offset to 0 when frame end for wrap mode Change-Id: I8d216824edff965ef12b2de8620dd135a6ff50f4 Signed-off-by: Cai YiWei --- drivers/media/platform/rockchip/isp/capture_v32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/rockchip/isp/capture_v32.c b/drivers/media/platform/rockchip/isp/capture_v32.c index 05b5356841d2..5a7a0c5b60c6 100644 --- a/drivers/media/platform/rockchip/isp/capture_v32.c +++ b/drivers/media/platform/rockchip/isp/capture_v32.c @@ -698,10 +698,8 @@ static int mp_config_mi(struct rkisp_stream *stream) * NOTE: plane_fmt[0].sizeimage is total size of all planes for single * memory plane formats, so calculate the size explicitly. */ - if (dev->cap_dev.wrap_line) { + if (dev->cap_dev.wrap_line) height = dev->cap_dev.wrap_line; - rkisp_clear_bits(dev, 0x1814, BIT(0), false); - } val = out_fmt->plane_fmt[0].bytesperline; /* in bytes for isp32 */ if (dev->isp_ver == ISP_V32)