0cc961440b
Introduce v4l2.c, a decoder for the arguments of the video-input subset of the v4l2 ioctl's. This is a combination of - previous work by Peter Zotov <whitequark@whitequark.org>, found at https://gist.githubusercontent.com/whitequark/1263207/raw/strace-4.6-v4l2-ioctls.patch - previous work by William Manley <will@williammanley.net>, found at http://marc.info/?l=strace&m=139395588520675 - forward port, additions and fixes by Philippe De Muyter <phdm@macqel.be> As v4l2 is a moving target, I have made v4l2.c compilable with ancient linux kernels by testing the availability of some macros. It has been succesfully compiled on linux 3.10, 3.1, 2.6.31 and 2.6.22, and succesfully used on linux 3.10 with a camera device. * configure.ac: Check for availabilty of V4L2_* enum constants. * Makefile.am (strace_SOURCES): Add v4l2.c. * defs.h (v4l2_ioctl): New prototype. * ioctl.c (ioctl_decode): Use v4l2_ioctl. * v4l2.c: New file. * xlat/v4l2_*.in: New files. Signed-off-by: Philippe De Muyter <phdm@macqel.be> Cc: Peter Zotov <whitequark@whitequark.org> Cc: William Manley <will@williammanley.net>
10 lines
208 B
Plaintext
10 lines
208 B
Plaintext
V4L2_CTRL_CLASS_USER
|
|
V4L2_CTRL_CLASS_MPEG
|
|
V4L2_CTRL_CLASS_CAMERA
|
|
V4L2_CTRL_CLASS_FM_TX
|
|
V4L2_CTRL_CLASS_FLASH
|
|
V4L2_CTRL_CLASS_JPEG
|
|
V4L2_CTRL_CLASS_IMAGE_SOURCE
|
|
V4L2_CTRL_CLASS_IMAGE_PROC
|
|
V4L2_CTRL_CLASS_FM_RX
|