mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
media: rockchip: ispp: fix warning of leaving buf in active state
Signed-off-by: Hu Kejun <william.hu@rock-chips.com> Change-Id: I9497705eb7dba0988bfeb44f4060967209120c31
This commit is contained in:
@@ -682,6 +682,12 @@ static void rkispp_params_vb2_stop_streaming(struct vb2_queue *vq)
|
||||
buf = NULL;
|
||||
}
|
||||
|
||||
if (params_vdev->cur_buf) {
|
||||
vb2_buffer_done(¶ms_vdev->cur_buf->vb.vb2_buf,
|
||||
VB2_BUF_STATE_ERROR);
|
||||
params_vdev->cur_buf = NULL;
|
||||
}
|
||||
|
||||
/* clean module params */
|
||||
params_vdev->cur_params.module_cfg_update = 0;
|
||||
params_vdev->cur_params.module_en_update = 0;
|
||||
|
||||
Reference in New Issue
Block a user