media: rockchip: cif: keep crop info after streaming off

Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I69971cdee744ccc490ebb64d074343115d50742a
This commit is contained in:
Allon Huang
2020-07-29 14:41:52 +08:00
committed by Tao Huang
parent a3ce48bb60
commit 325c2db47b

View File

@@ -1517,7 +1517,6 @@ static void rkcif_stream_stop(struct rkcif_stream *stream)
}
stream->state = RKCIF_STATE_READY;
stream->crop_enable = false;
}
static int rkcif_queue_setup(struct vb2_queue *queue,
@@ -1735,10 +1734,6 @@ static void rkcif_stop_streaming(struct vb2_queue *queue)
dev->can_be_reset = true;
}
memset(&stream->pixm, 0x0, sizeof(stream->pixm));
memset(&stream->crop, 0x0, sizeof(stream->crop));
stream->crop_enable = false;
if (dev->can_be_reset) {
if (dev->hdr.mode != NO_HDR) {
rkcif_stop_luma(&dev->luma_vdev);