kernel-ark/drivers/media/video/cx25840
Trent Piepho 52ebc763d8 V4L/DVB (5146): Make VIDIOC_INT_[SG]_REGISTER ioctls no longer internal only
The direct register access ioctls were defined as kernel internal only,
but they are very useful for debugging hardware from userspace and are
used as such.  Officially export them.

VIDIOC_INT_[SG]_REGISTER is renamed to VIDIOC_DBG_[SG]_REGISTER 
Definition of ioctl and struct v4l2_register is moved from v4l2-common.h 
to videodev2.h.

Types used in struct v4l2_register are changed to the userspace 
exportable versions (u32 -> __u32, etc). 

Use of VIDIOC_DBG_S_REGISTER requires CAP_SYS_ADMIN permission, so move 
the check into the video_ioctl2() dispatcher so it doesn't need to be 
duplicated in each driver's call-back function. CAP_SYS_ADMIN check is 
added to pvrusb2 (which doesn't use video_ioctl2).

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-21 13:34:55 -02:00
..
cx25840-audio.c V4L/DVB (4008): Audio soft reset improvements 2006-06-25 02:00:18 -03:00
cx25840-core.c V4L/DVB (5146): Make VIDIOC_INT_[SG]_REGISTER ioctls no longer internal only 2007-02-21 13:34:55 -02:00
cx25840-core.h V4L/DVB (4067): Fixed cx25840 to work with PAL/M 2006-06-25 02:05:04 -03:00
cx25840-firmware.c V4L/DVB (3825): Remove broken 'fast firmware load' from cx25840. 2006-05-12 19:55:12 -03:00
cx25840-vbi.c V4L/DVB (4968): Add PAL-60 support for cx2584x. 2006-12-27 14:18:59 -02:00
Kconfig V4L/DVB (4519): Fixes Helper module dependencies against V4L APIs 2006-09-26 12:30:34 -03:00
Makefile kbuild: fix unneeded rebuilds in drivers/media/video after moving source tree 2006-04-04 16:50:50 +02:00