summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-dev.h
AgeCommit message (Collapse)Author
2007-01-22Restore VIDIOC_INT_[SG]_REGISTER callsTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Add support for these ioctls to the video_ioctl2 system and the cx88 driver. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-11-20Remove the need of a STD array for drivers using video_ioctl2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> CC: Jonathan Corbet <corbet@lwn.net> video_ioctl2 will auto-generate standard entries at ENUM_FMT. Also, now, a driver may return a subset of the video array at the return, to be stored as the current_norm. For example, a driver may ask for V4L2_STD_PAL. At return, driver may change it to V4L2_STD_PAL_B. This way, a futher call to G_STD will return the exact detected video std. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-10-04Dev2: handle __must_checkMauro Carvalho Chehab
From: Andrew Morton <akpm@osdl.org> We get hundreds of these: include/media/v4l2-dev.h:348: warning: ignoring return value of 'class_device_create_file', declared with attribute warn_unused_result Handle it, and propagate the __must_check back a level. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-09-06Fixes an issue with V4L1 and make headers-installMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> V4L1 support should be disabled when no CONFIG_VIDEO_V4L1_COMPAT is defined, to allow checking for broken V4L2 ports. This is very important during the migration phase for V4L2 API. However, userspace apps should be capable of using both APIs, since they need to test at runtime, via VIDIOCGCAP ioctl, if V4L1 is supported. So, when __KERNEL__ is not defined, those ioctls and corresponding structs should be visible. This patch also removes the obsolete defines HAVE_V4L1 and HAVE_V4L2, that where causing some confusion, and were replaced by CONFIG_VIDEO_V4L1_COMPAT and CONFIG_VIDEO_V4L2. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-23V4L2 conversion: radio-maestroMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Driver conversion to V4L2 API. Require some testing, since I don't have such hardware Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-23Fix: compile for radio aimslab and aztech with V4L2 onlyMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> All radio devices use an obsolete mode of opening/release driver. Since this is not V4L1 core, better to keep the method available for more time than to rewrite open/release without a radio device to test, since the newer method is much more complex than the previous one (although providing support for multiple opens and multiple devices). Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-19videodev.h should be included also when V4L1_COMPAT is selected.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-19[PATCH] devfs: Remove the videodevice devfs_name field as it's no longer neededMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: backport from kernel to v4l/dvb tree Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-18Check __must_check warning in video_device_create_fileMauro Carvalho Chehab
From: Michael Krufky <mkrufky@linuxtv.org> This patch moves the check from bttv-driver.c into v4l2-dev.h, because all other callers of video_device_create_file must also be checked. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> cc: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-18video_device_create_file should return the value of class_device_create_fileMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> video_device_create_file was declared as a void, but instead should return the int value of class_device_create_file Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-18Add videodev support for VIDIOC_S/G/TRY_EXT_CTRLS.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> videodev.c copies the control list specified in struct v4l2_ext_controls to kernel space. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-08Fix compilation with kernel 2.6.17Mauro Carvalho Chehab
From: Andrew Ruder <andy@aeruder.net> This bug were introduced by the changes at videodev2.h Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-06Fixes lots of small errors at videodev.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Fixes several small errors at debug; Fixes max line size to 80 columns; Fixes parameter passage to callback functions; Removed unused fh pointer at video_device struct. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-05Removed all references to kernel stuff from videodev.h and videodev2.hMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> The videodev.h and videodev2.h describe the public API for V4L and V4L2. It shouldn't have there any kernel-specific stuff. Those were moved to v4l2-dev.h. This patch removes some uneeded headers and include v4l2-common.h on all V4L driver. This header includes device implementation of V4L2 API provided on v4l2-dev.h as well as V4L2 internal ioctls that provides connections between master driver and its i2c devices. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-04Several improvements at videodev.cMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Videodev now is capable of better handling V4L2 api, by processing V4L2 ioctls and using callbacks to the driver. The drivers should be migrated to the newer way and the older one will be obsoleted soon. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>