summaryrefslogtreecommitdiff
path: root/include/linux/videodev2.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 23:20:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 23:20:27 -0700
commit2e061730cce0ec9d6157ee2f548625336647b7db (patch)
tree1830a9aa84405bf09628d17327d99af9d58c6a5d /include/linux/videodev2.h
parentd570ea4b647ab5addc0646d16bb203b00de90023 (diff)
[PATCH] v4l: cropcap ioctl fix
From: Gerd Knorr <kraxel@bytesex.org> The VIDIOC_CROPCAP ioctl had wrong R/W bits, this patch fixes it.
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r--include/linux/videodev2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 1bfc45a4a430..a4ab8e826bbe 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -869,7 +869,7 @@ struct v4l2_streamparm
#define VIDIOC_S_MODULATOR _IOW ('V', 55, struct v4l2_modulator)
#define VIDIOC_G_FREQUENCY _IOWR ('V', 56, struct v4l2_frequency)
#define VIDIOC_S_FREQUENCY _IOW ('V', 57, struct v4l2_frequency)
-#define VIDIOC_CROPCAP _IOR ('V', 58, struct v4l2_cropcap)
+#define VIDIOC_CROPCAP _IOWR ('V', 58, struct v4l2_cropcap)
#define VIDIOC_G_CROP _IOWR ('V', 59, struct v4l2_crop)
#define VIDIOC_S_CROP _IOW ('V', 60, struct v4l2_crop)
#define VIDIOC_G_JPEGCOMP _IOR ('V', 61, struct v4l2_jpegcompression)
@@ -887,6 +887,7 @@ struct v4l2_streamparm
#define VIDIOC_S_CTRL_OLD _IOW ('V', 28, struct v4l2_control)
#define VIDIOC_G_AUDIO_OLD _IOWR ('V', 33, struct v4l2_audio)
#define VIDIOC_G_AUDOUT_OLD _IOWR ('V', 49, struct v4l2_audioout)
+#define VIDIOC_CROPCAP_OLD _IOR ('V', 58, struct v4l2_cropcap)
#define BASE_VIDIOC_PRIVATE 192 /* 192-255 are private */