media: rk-isp10: fix lose buffer in qduf ioctl

Change-Id: If1d8cf228642f08745d22856b19677164eaba980
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
This commit is contained in:
Hu Kejun
2018-09-14 09:31:13 +08:00
committed by Tao Huang
parent dc72529740
commit 4199db0812

View File

@@ -906,16 +906,19 @@ static void cif_isp10_v4l2_vb2_queue(struct vb2_buffer *vb)
enum cif_isp10_stream_id strm = to_cif_isp10_stream_id(queue);
struct cif_isp10_stream *stream = to_stream_by_id(dev, strm);
u32 size;
unsigned long lock_flags = 0;
cif_isp10_pltfrm_pr_dbg(NULL,
"buffer type %s\n",
cif_isp10_v4l2_buf_type_string(queue->type));
spin_lock_irqsave(&dev->vbq_lock, lock_flags);
list_add_tail(&ispbuf->queue, &stream->buf_queue);
cif_isp10_calc_min_out_buff_size(dev, strm, &size, false);
//size = PAGE_ALIGN(size);
vb2_set_plane_payload(vb, 0, size);
spin_unlock_irqrestore(&dev->vbq_lock, lock_flags);
}
static void cif_isp10_v4l2_vb2_stop_streaming(struct vb2_queue *queue)