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:
parent
519de79ed9
commit
1d8b9cc522
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue