Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 519311eb authored by Vikash Garodia's avatar Vikash Garodia Committed by Gerrit - the friendly Code Review server
Browse files

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: Ie9f93301f660490cd6e47629b90403ae5d8b44d4
Signed-off-by: default avatarVikash Garodia <vgarodia@codeaurora.org>
parent 3541909b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1084,7 +1084,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 = !V4L2_TYPE_IS_OUTPUT(type);
	q->allow_zero_bytesused = 1;
	return vb2_queue_init(q);
}