V4L: Add mem2mem ioctl and file operation helpers
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sat, 14 Sep 2013 21:39:04 +0000 (23:39 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:48 +0000 (11:44 +0900)
commit2e7790aa2a939eabea7a9b043890efd668fa9cea
treeb4adcc3ecb8bcfbca63cbb7a96a047e6a49136d6
parent43fda887ac27b2ba83284735da14c305649ce2b8
V4L: Add mem2mem ioctl and file operation helpers

This patch adds ioctl helpers to the V4L2 mem-to-mem API, so we can avoid
several ioctl handlers in the mem-to-mem video node drivers that are simply
a pass-through to the v4l2_m2m_* calls. These helpers will only be useful
for drivers that use same mutex for both OUTPUT and CAPTURE queue, which
is the case for all currently in tree v4l2 m2m drivers. In order to use
the helpers the drivers are required to use struct v4l2_fh.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Changes since v1:
 - added v4l2_m2m_ioctl_create_buf().
drivers/media/v4l2-core/v4l2-mem2mem.c
include/media/v4l2-fh.h
include/media/v4l2-mem2mem.h