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

Commit 140d48a8 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian Committed by Gerrit - the friendly Code Review server
Browse files

msm: wfd: Fix WARN_ON() when initing vb2_queue



As of kernel 3.10, initing vb2_queue without specifying how timestamps
are generated triggers a WARN_ON.  Specify the timestamp so that the vb2
framework doesn't complain.

Change-Id: I467e8263901158c9dc8317b8b8581d51b515a2b7
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
CRs-Fixed: 588440
parent fa184d34
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1425,6 +1425,7 @@ static struct vb2_mem_ops wfd_vb2_mem_ops = {

int wfd_initialize_vb2_queue(struct vb2_queue *q, void *priv)
{
	q->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
	q->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
	q->io_modes = VB2_USERPTR;
	q->ops = &wfd_vidbuf_ops;