msm: vidc: Allow zero length qbuf

Video driver expects and supports zero length qbuf.
The v4l2 framework will allow zero length qbuf only if
vb->allow_zero_bytesused is enabled.

Change-Id: Ie94ffce93d28d08610310885e4f257ebdbc15dd1
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
This commit is contained in:
Arun Menon 2016-05-04 13:20:13 -07:00 committed by Gerrit - the friendly Code Review server
parent 519de79ed9
commit 1d8b9cc522

View file

@ -1051,6 +1051,7 @@ static inline int vb2_bufq_init(struct msm_vidc_inst *inst,
q->ops = msm_venc_get_vb2q_ops();
q->mem_ops = &msm_vidc_vb2_mem_ops;
q->drv_priv = inst;
q->allow_zero_bytesused = 1;
return vb2_queue_init(q);
}