aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-05 04:33:21 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 10:03:53 -0400
commit5c77879ff9ab9e7dd5b4a78666a09af1a8854be9 (patch)
treee5f1cf5178cd012c62d9663cfa9109f006f61cb5 /include/media
parent4f996594ceaf6c3f9bc42b40c40b0f7f87b79c86 (diff)
[media] v4l2-dev: add new VFL_DIR_ defines
These will be used by v4l2-dev.c to improve ioctl checking. I.e. ioctls for capture should return -ENOTTY when called for an output device. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-dev.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 6ee8897c47e9..95d1c91770f4 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -26,6 +26,12 @@
26#define VFL_TYPE_SUBDEV 3 26#define VFL_TYPE_SUBDEV 3
27#define VFL_TYPE_MAX 4 27#define VFL_TYPE_MAX 4
28 28
29/* Is this a receiver, transmitter or mem-to-mem? */
30/* Ignored for VFL_TYPE_SUBDEV. */
31#define VFL_DIR_RX 0
32#define VFL_DIR_TX 1
33#define VFL_DIR_M2M 2
34
29struct v4l2_ioctl_callbacks; 35struct v4l2_ioctl_callbacks;
30struct video_device; 36struct video_device;
31struct v4l2_device; 37struct v4l2_device;
@@ -105,7 +111,8 @@ struct video_device
105 111
106 /* device info */ 112 /* device info */
107 char name[32]; 113 char name[32];
108 int vfl_type; 114 int vfl_type; /* device type */
115 int vfl_dir; /* receiver, transmitter or m2m */
109 /* 'minor' is set to -1 if the registration failed */ 116 /* 'minor' is set to -1 if the registration failed */
110 int minor; 117 int minor;
111 u16 num; 118 u16 num;