Skip to contentSkip to conversation

01_v4l2-api-fix

PATCH New Gerd Knorr 1 participant 1 message Nov 7, 2002

lore
Share & tools
lore

Gerd Knorr

author
#0 lore raw

PATCH 1/1 01_v4l2-api-fix

Hi,

This patch fixes a ioctl numbering flaw of the new v4l2 API, found by davem.

Without this we get compile errors because tables based upon ioctl number end up having duplicate entries.

Please apply,

Gerd

include/linux/videodev2.h +1 -1
@@ -819,7 +819,7 @@
 #define VIDIOC_G_JPEGCOMP	_IOR  ('V', 61, struct v4l2_jpegcompression)
 #define VIDIOC_S_JPEGCOMP	_IOW  ('V', 62, struct v4l2_jpegcompression)
 #define VIDIOC_QUERYSTD      	_IOR  ('V', 63, v4l2_std_id)
-#define VIDIOC_TRY_FMT      	_IOWR ('V', 63, struct v4l2_format)
+#define VIDIOC_TRY_FMT      	_IOWR ('V', 64, struct v4l2_format)
 
 #define BASE_VIDIOC_PRIVATE	192		/* 192-255 are private */
 
Signature · 3 lines
You can't please everybody.  And usually if you _try_ to please
everybody, the end result is one big mess.
				-- Linus Torvalds, 2002-04-20