mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user