Skip to content

Commit

Permalink
[media] v4l: vb: remove warnings about MEMORY_DMABUF
Browse files Browse the repository at this point in the history
Adding DMABUF memory type causes videobuf to complain about not using it
in some switch cases. This patch removes these warnings.

Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sumit Semwal authored and Mauro Carvalho Chehab committed Nov 25, 2012
1 parent c538404 commit 3c3016b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/v4l2-core/videobuf-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ static void videobuf_status(struct videobuf_queue *q, struct v4l2_buffer *b,
case V4L2_MEMORY_OVERLAY:
b->m.offset = vb->boff;
break;
case V4L2_MEMORY_DMABUF:
/* DMABUF is not handled in videobuf framework */
break;
}

b->flags = 0;
Expand Down Expand Up @@ -405,6 +408,7 @@ int __videobuf_mmap_setup(struct videobuf_queue *q,
break;
case V4L2_MEMORY_USERPTR:
case V4L2_MEMORY_OVERLAY:
case V4L2_MEMORY_DMABUF:
/* nothing */
break;
}
Expand Down

0 comments on commit 3c3016b

Please sign in to comment.