commit | 36ab4f98f869b7d62064ac0a90bc5f26a2137ab5 | [log] [tgz] |
---|---|---|
author | Surajit Podder <spodder@codeaurora.org> | Tue Feb 20 17:29:52 2018 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Feb 21 02:43:48 2018 -0800 |
tree | 127470b3610371e6955ab65f968b427023a91db3 | |
parent | 90d5fc2598b876ea9efd5669ac9890e342e51672 [diff] |
msm: vidc: Allow 0 filled length qbuf Allow client to send 0 filled length qbuf, to avoid v4l2 core from setting filled length to alloc length. Change-Id: I6c320cc31048584f2f57badaba94776e0cdd73d9 Signed-off-by: Surajit Podder <spodder@codeaurora.org>
diff --git a/drivers/media/platform/msm/vidc_3x/msm_vidc.c b/drivers/media/platform/msm/vidc_3x/msm_vidc.c index dd966f3..16db81c 100644 --- a/drivers/media/platform/msm/vidc_3x/msm_vidc.c +++ b/drivers/media/platform/msm/vidc_3x/msm_vidc.c
@@ -1075,6 +1075,7 @@ 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); }