24be689bfbbcd6c047d7918784ff810e97648006 |
|
10-Jan-2012 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Use one shared usb command buffer The pwc driver used to: 1. kmalloc a buffer 2. memcpy data to send over usb there 3. do the usb_control_msg call (which does not work with data on the stack) 4. free the buffer For every usb command send. This patch changes the code to instead malloc a buffer for this purpose once and use it everywhere. [mchehab@redhat.com: Fix a compilation breakage with allyesconfig: drivers/media/video/pwc/pwc-ctrl.c: In function ‘pwc_get_cmos_sensor’: drivers/media/video/pwc/pwc-ctrl.c:546:3: warning: passing argument 4 of ‘recv_control_msg’ makes integer from pointer without a cast [en$ drivers/media/video/pwc/pwc-ctrl.c:107:12: note: expected ‘int’ but argument is of type ‘unsigned char *’ drivers/media/video/pwc/pwc-ctrl.c:546:3: error: too many arguments to function ‘recv_control_msg’ drivers/media/video/pwc/pwc-ctrl.c:107:12: note: declared here] Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
938d5b9e7c2e20a7e609ad5874c6e7d8d391e6e9 |
|
10-Jan-2012 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Avoid sending mode info to the camera when it is not needed Since we always do a set_video_mode on stream start, there is no need to actually send the mode info to the device on a s_fmt / s_parm ioctl. Not doing this saves us doing (slow) usb io. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
d167a85c5fb45b1ecdacdb9b7733833a9af78da8 |
|
10-Jan-2012 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Fix pixfmt handling Before this patch various code in the mode setting patch checked pdev->pixfmt, but that was not set until the mode setting succeeded, so it was looking at the old pixfmt! This patch fixes this by making the pixfmt a parameter to set_video_mode, and setting it from set_video_mode on success. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
56ae24aad8f9e25dfef995c3e898e5f394cf0beb |
|
08-Jan-2012 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Make decoder data part of the main pwc struct Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
5bbe18d74f0c163090cd16bd25e252e8806a6c75 |
|
04-Jan-2012 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Get rid of compression module parameter Instead of making this a module parameter, automatically fallback to higher compression settings if there is not enough bandwidth. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
795e6eb3262d3b7247ce450835eea6df6571d103 |
|
04-Jan-2012 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Remove software emulation of arbritary resolutions The pwc driver claims to support any resolution between 160x120 and 640x480, but emulates this by simply drawing a black border around the image. Userspace can draw its own black border if it really wants one. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
a08d2c727153dc6cea1d5d54a43fd7d69c1467c3 |
|
31-Dec-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Remove driver specific ioctls This stems from the v4l1 era, with v4l2 everything can be done with standardized v4l2 API calls. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
dc8a7e83aaf8bb1bcf7163bda8926a6dd29c409b |
|
31-Dec-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Remove dead snapshot code The in kernel version of the pwc driver has never supported snapshot mode, and now that we no longer support the pixfmt.priv abuse there also no longer is a way for userspace to request it, rendering all the code in question dead (never called), so remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
1516524ff299d803ff530495fd66b514ec962f75 |
|
31-Dec-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Remove driver specific sysfs interface Setting pan/tilt should be done with v4l2 controls, like with other cams. The button is available as a standard input device Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
c20d78cde37018caa0313469c9320424995cc489 |
|
09-Oct-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Rework locking While testing gtk-v4l's new ctrl event code, I hit the following deadlock in the pwc driver: Thread 1: -Does a VIDIOC_G_CTRL -video2_ioctl takes the modlock -video2_ioctl calls v4l2_g_ctrl -v4l2_g_ctrl takes the ctrl_handler lock -v4l2_g_ctrl calls pwc_g_volatile_ctrl -pwc_g_volatile_ctrl releases the modlock as the usb transfer can take a significant amount of time and we don't want to block DQBUF / QBUF too long Thread 2: -Does a VIDIOC_FOO_CTRL -video2_ioctl takes the modlock -video2_ioctl calls v4l2_foo_ctrl -v4l2_foo_ctrl blocks while trying to take the ctrl_handler lock Thread 1: -Blocks while trying to re-take the modlock, as its caller will eventually unlock that Now we have thread 1 waiting for the modlock while holding the ctrl_handler lock and thread 2 waiting for the ctrl_handler lock while holding the modlock -> deadlock. Conclusion: 1) We cannot unlock modlock from pwc_s_ctrl / pwc_g_volatile_ctrl, but this can cause QBUF / DQBUF to block for up to a full second 2) After evaluating various option I came to the conclusion that pwc should stop using the v4l2 core locking, and instead do its own locking Thus this patch stops pwc using the v4l2 core locking, and replaces that with it doing its own locking where necessary. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
f4af65958a6ea987ff61504ad9f053f8ba8da674 |
|
09-Oct-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Make auto white balance speed and delay available as v4l2 controls Currently auto white balance speed and delay are only available through custom ioctls, which are deprecated and will be going away in 3.3 . Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
76ae853844dff124559e1b609b0c71c792a98221 |
|
19-Jul-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Use v4l2-device and v4l2-fh This is a preperation patch for adding support for control events. Actually enabling support for control events will be done in a separate patch, as that depends on the necessary poll changes going upstream Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
e3aec98c1d3beaba9b96a7f00046bc06e59d6ab9 |
|
03-Jul-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: clean-up header files Remove unused pwc-ioctl.h (the copy in include/media is used everywhere) Remove almost empty pwc-uncompress.h, move single define to pwc.h Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
294e289602d7827f1389b081535fda3b7553a651 |
|
03-Jul-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Add v4l2 controls for pan/tilt on Logitech QuickCam Orbit/Sphere This makes the API for this: 1) v4l2 spec compliant 2) match that of the UVC Logitech QuickCam Sphere models For now this operates in parellel to the sysfs interface for this, but the intend is to deprecate the sysfs interface and remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
c11271349ad5d4647e69e511fc481b2dd390efc4 |
|
03-Jul-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Allow dqbuf / read to complete while waiting for controls Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
6c9cac89c009c049a9ad29cdf0f51892410fe751 |
|
26-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Replace control code with v4l2-ctrls framework Also remove all the converting from native range to 0-65535 and back that was going on. This is no longer needed now that we no longer support v4l1. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
04613c5e600e64840e4f753bd881cd5ab96ae403 |
|
26-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: properly allocate dma-able memory for ISO buffers Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
4fba471e405f8f983085fd9f2fd9637bfc275f8f |
|
26-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Allow multiple opens Allow multiple opens of the /dev/video node so that control panel apps can be open to-gether with streaming apps. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
6eba93573d2dda3f627006101c0652faeeaffde6 |
|
26-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Move various initialization to driver load and / or stream start Doing a bunch of initialization every time /dev/video is opened, and thus for example when the udev rules probe for capabilities makes no sense, do it at driver load, resp. stream start instead. This is a preparation patch for allowing multiple opens of the /dev/video node. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
3b4d0ec79113e77b3fe90749ae00bfa015c73048 |
|
26-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Make power-saving a per device option as vcinterface must be set before calling pwc_camera_power() Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
52a92547508e7bb62b6325cd2954412a7ab01249 |
|
25-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Remove some unused PWC_INT_PIPE left overs Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
b824bb4b12548fedd622686d443310d574eb084e |
|
25-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Get rid of error_status and unplugged variables Having 2 ways of tracking disconnection is too much, remove both and instead simply set pdev->udev to NULL on disconnect. Also check for pdev->udev being NULL in all possible entry paths. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
1a4ede65f30315a31cb9b239bec0d4bb32834691 |
|
25-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Fix non CodingStyle compliant 3 space indent in pwc.h Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
885fe18f5542fe283a17f70583383c6cadcba1c3 |
|
06-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: Replace private buffer management code with videobuf2 Looking at the pwc buffer management code has made it clear to me it needed some serious fixing. Not only was there a ton of code duplication even internally to pwc (read and mmap wait for frame code was duplicated), the code also was outright buggy. With the worst offender being dqbuf, which just round robin returned all the mmap buffers, without paying any attention to them being queued by the app with qbuf or not. And qbuf itself was a noop. So I set out to fix this and already had some cleanups in place when I read Jonathan Corbet's lwn article on videobuf2, this inspired me to just rip out the buffer management code and replace it with videobuf2, greatly reducing the amount of code, and fixing all bugs in one go: Many thanks to Jonathan for the timely article on this ! Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
5f40d915521f5a8ae4551a21871a062201ba9981 |
|
06-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: remove __cplusplus guards from private header Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
880c35c5850464c934f02a5ec7d4c1a4df386fce |
|
25-Jun-2011 |
Mauro Carvalho Chehab <mchehab@redhat.com> |
[media] pwc: Use the default version for VIDIOC_QUERYCAP After discussing with Hans, change pwc to use the default version control. The only version ever used for pwc driver is 10.0.12, due to commit 2b455db6d456ef2d44808a8377fd3bc832e08317. Changing it to 3.x.y won't conflict with the old version. There's no namespace conflicts in any predictable future. Even on the remote far-away case where we might have a conflict, it will be on just one specific stable Kernel release (Kernel 10.0.12), if we ever have such stable release. So, it is safe and consistent on using 3.x.y numering schema for it. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
1990d50b58bef127a647005fdcada6d07081d3ef |
|
24-Jun-2011 |
Mauro Carvalho Chehab <mchehab@redhat.com> |
[media] Stop using linux/version.h on most video drivers All the modified drivers didn't have any version increment since Jan, 1 2011. Several of them didn't have any version increment for a long time, even having new features and important bug fixes happening. As we're now filling the QUERYCAP version with the current Kernel Release, we don't need to maintain a per-driver version control anymore. So, let's just use the default. In order to preserve the Kernel module version history, a KERNEL_VERSION() macro were added to all modified drivers, and the extraver number were incremented. I opted to preserve the per-driver version control to a few pwc, pvrusb2, s2255, s5p-fimc and sh_vou. A few drivers are still using the legacy way to handle ioctl's. So, we can't do such change on them, otherwise, they'll break. Those are: uvc, et61x251 and sn9c102. The rationale is that the per-driver version control seems to be actively maintained on those. Yet, I think that the better for them would be to just use the default version numbering, instead of doing that by themselves. While here, removed a few uneeded include linux/version.h Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
9a7b2d1f0eb0a6b674726c9a9d77ce83fd0b27fe |
|
06-Jun-2011 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: better usb disconnect handling Unplugging a pwc cam while an app has the /dev/video# node open leads to an oops in pwc_video_close when the app closes the node, because the disconnect handler has free-ed the pdev struct pwc_video_close tries to use. Instead of adding some sort of bandaid for this. fix it properly using the v4l2 core's new(ish) behavior of keeping the v4l2_dev structure around until both unregister has been called, and all file handles referring to it have been closed: Embed the v4l2_dev structure in the pdev structure and define a v4l2 dev release callback releasing the pdev structure (and thus also the embedded v4l2 dev structure. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Cc: stable@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
afa38521614dcdfe12c765ff76d4c137a056e905 |
|
22-Jan-2011 |
Hans Verkuil <hverkuil@xs4all.nl> |
[media] pwc: convert to video_ioctl2 Tested with a Logitech QuickCam Pro 4000. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
3751e288bcf3d77652ef979edc0b3ea8b21d8b97 |
|
16-Nov-2010 |
Hans de Goede <hdegoede@redhat.com> |
[media] pwc: do not start isoc stream on /dev/video open pwc was starting streaming on /dev/video# open rather then on STREAM_ON. Now that the v4l1 compat code is removed from the pwc driver there is no reason left to do this. So this patch changes the pwc driver to delay starting the isoc stream (and thus using valuable usb bandwidth) until the application does a STREAM_ON Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
479567ce3af7b99d645a3c53b8ca2fc65e46efdc |
|
12-Sep-2010 |
Hans Verkuil <hverkuil@xs4all.nl> |
V4L/DVB: pwc: fully convert driver to V4L2 Remove the V4L1 API from this driver, making it fully V4L2. Also fix a bug where the /dev/videoX device was created too early, which led to initialization problems of the camera, making it unable to capture video. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
5a0e3ad6af8660be21ca98a971cd00f331318c05 |
|
24-Mar-2010 |
Tejun Heo <tj@kernel.org> |
include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h percpu.h is included by sched.h and module.h and thus ends up being included when building most .c files. percpu.h includes slab.h which in turn includes gfp.h making everything defined by the two files universally available and complicating inclusion dependencies. percpu.h -> slab.h dependency is about to be removed. Prepare for this change by updating users of gfp and slab facilities include those headers directly instead of assuming availability. As this conversion needs to touch large number of source files, the following script is used as the basis of conversion. http://userweb.kernel.org/~tj/misc/slabh-sweep.py The script does the followings. * Scan files for gfp and slab usages and update includes such that only the necessary includes are there. ie. if only gfp is used, gfp.h, if slab is used, slab.h. * When the script inserts a new include, it looks at the include blocks and try to put the new include such that its order conforms to its surrounding. It's put in the include block which contains core kernel includes, in the same order that the rest are ordered - alphabetical, Christmas tree, rev-Xmas-tree or at the end if there doesn't seem to be any matching order. * If the script can't find a place to put a new include (mostly because the file doesn't have fitting include block), it prints out an error message indicating which .h file needs to be added to the file. The conversion was done in the following steps. 1. The initial automatic conversion of all .c files updated slightly over 4000 files, deleting around 700 includes and adding ~480 gfp.h and ~3000 slab.h inclusions. The script emitted errors for ~400 files. 2. Each error was manually checked. Some didn't need the inclusion, some needed manual addition while adding it to implementation .h or embedding .c file was more appropriate for others. This step added inclusions to around 150 files. 3. The script was run again and the output was compared to the edits from #2 to make sure no file was left behind. 4. Several build tests were done and a couple of problems were fixed. e.g. lib/decompress_*.c used malloc/free() wrappers around slab APIs requiring slab.h to be added manually. 5. The script was run on all .h files but without automatically editing them as sprinkling gfp.h and slab.h inclusions around .h files could easily lead to inclusion dependency hell. Most gfp.h inclusion directives were ignored as stuff from gfp.h was usually wildly available and often used in preprocessor macros. Each slab.h inclusion directive was examined and added manually as necessary. 6. percpu.h was updated not to include slab.h. 7. Build test were done on the following configurations and failures were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my distributed build env didn't work with gcov compiles) and a few more options had to be turned off depending on archs to make things build (like ipr on powerpc/64 which failed due to missing writeq). * x86 and x86_64 UP and SMP allmodconfig and a custom test config. * powerpc and powerpc64 SMP allmodconfig * sparc and sparc64 SMP allmodconfig * ia64 SMP allmodconfig * s390 SMP allmodconfig * alpha SMP allmodconfig * um on x86_64 SMP allmodconfig 8. percpu.h modifications were reverted so that it could be applied as a separate patch and serve as bisection point. Given the fact that I had only a couple of failures from tests on step 6, I'm fairly confident about the coverage of this conversion patch. If there is a breakage, it's likely to be something in one of the arch headers which should be easily discoverable easily on most builds of the specific arch. Signed-off-by: Tejun Heo <tj@kernel.org> Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
/drivers/media/video/pwc/pwc.h
|
89dec01b7e251697720ac3d6a5310d72359eba69 |
|
14-Aug-2009 |
Dmitry Torokhov <dmitry.torokhov@gmail.com> |
V4L/DVB (12489): pwc - fix few use-after-free and memory leaks I just happen to peek inside the PWC driver and did not like what I saw there. Please consider applying the patch below. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
c85e46e3486e786a4ce5ff9febf0028882987029 |
|
30-Jun-2009 |
Mauro Carvalho Chehab <mchehab@redhat.com> |
V4L/DVB (12147): pwc: remove definitions that are already present at videodev2.h Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
405f55712dfe464b3240d7816cc4fe4174831be2 |
|
11-Jul-2009 |
Alexey Dobriyan <adobriyan@gmail.com> |
headers: smp_lock.h redux * Remove smp_lock.h from files which don't need it (including some headers!) * Add smp_lock.h to files which do need it * Make smp_lock.h include conditional in hardirq.h It's needed only for one kernel_locked() usage which is under CONFIG_PREEMPT This will make hardirq.h inclusion cheaper for every PREEMPT=n config (which includes allmodconfig/allyesconfig, BTW) Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/drivers/media/video/pwc/pwc.h
|
e32a7eccd7f016928dd864711ac654e6db62c5f3 |
|
12-Jan-2009 |
Nam Phạm Thành <phamthanhnam.ptn@gmail.com> |
V4L/DVB (10242): pwc: add support for webcam snapshot button This patch adds support for Philips webcam snapshot button as an event input device, for consistency with other webcam drivers. Signed-off-by: Pham Thanh Nam <phamthanhnam.ptn@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
069b747931f13eda289c1d59a09ecc8162281a76 |
|
30-Dec-2008 |
Hans Verkuil <hverkuil@xs4all.nl> |
V4L/DVB (10138): v4l2-ioctl: change to long return type to match unlocked_ioctl. Since internal to v4l2 the ioctl prototype is the same regardless of it being called through .ioctl or .unlocked_ioctl, we need to convert it all to the long return type of unlocked_ioctl. Thanks to Jean-Francois Moine for posting an initial patch for this and thus bringing it to our attention. Cc: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
f473bf76c71ca734a16f9331ce6b6e9603641888 |
|
01-Nov-2008 |
Hans Verkuil <hverkuil@xs4all.nl> |
V4L/DVB (9503): v4l: remove inode argument from video_usercopy The inode argument was never used. Removing it from video_usercopy brings the function pointer type of video_usercopy in line with similar v4l2 functions, thus simplifying several drivers. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/pwc/pwc.h
|
38413fd2d82b0e75ae0492518f1b80a5cfd81956 |
|
28-Jul-2008 |
Mauro Carvalho Chehab <mchehab@infradead.org> |
V4L/DVB (8548): pwc: Fix compilation Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
35ea11ff84719b1bfab2909903a9640a86552fd1 |
|
20-Jul-2008 |
Hans Verkuil <hverkuil@xs4all.nl> |
V4L/DVB (8430): videodev: move some functions from v4l2-dev.h to v4l2-common.h or v4l2-ioctl.h The functions in a header should not belong to another module. The prio functions belong to v4l2-common.c, so move them to v4l2-common.h. The ioctl functions belong to v4l2-ioctl.c, so create a new v4l2-ioctl.h header and move those functions to it. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
85237f202d46d55c1bffe0c5b1aa3ddc0f1dce4d |
|
21-Aug-2007 |
Oliver Neukum <oneukum@suse.de> |
USB: fix DoS in pwc USB video driver the pwc driver has a disconnect method that waits for user space to close the device. This opens up an opportunity for a DoS attack, blocking the USB subsystem and making khubd's task busy wait in kernel space. This patch shifts freeing resources to close if an opened device is disconnected. Signed-off-by: Oliver Neukum <oneukum@suse.de> CC: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/media/video/pwc/pwc.h
|
b9378fdbc334d1575b492108eac822a78c0c46d9 |
|
02-Jul-2007 |
Matthias Kaehlcke <matthias.kaehlcke@gmail.com> |
V4L/DVB (5809): Use mutex instead of semaphore in Philips webcam driver The Philips webcam driver uses a semaphore as mutex. Use the mutex API instead of the (binary) semaphore. -- Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
9ee6d78cd4112c0f5a257a01383c64dadbf66da9 |
|
23-Apr-2007 |
Luc Saillard <luc@saillard.org> |
V4L/DVB (5547): Add ENUM_FRAMESIZES and ENUM_FRAMEINTERVALS ioctls This patch add support for the VIDIOC_ENUM_FRAMESIZES and VIDIOC_ENUM_FRAMEINTERVALS ioctl. * check if the maximum native framesize for raw mode is correct * raw mode framerates for all three chipset types Signed-off-by: Gregor Jasny <gjasny@web.de> Signed-off-by: Luc Saillard <luc@saillard.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
05ad390724d1f307111a322325df83282a1479e6 |
|
31-Jan-2007 |
Trent Piepho <xyzzy@speakeasy.org> |
V4L/DVB (5166): Remove obsolete alias defines of CONFIG_* settings The out of tree v4l-dvb build system didn't always override the kernel's configuration settings with v4l-dvb's settings correctly. To work around this, makefiles would define some new macro based on the setting of a config variable. e.g. the pwc Makefile would define CONFIG_PWC_DEBUG if CONFIG_USB_PWC_DEBUG (which is defined via Kconfig) was set. The v4l-dvb build system should now always override correctly, and this is no longer necessary. This patch gets ride of these extra defines and just uses the CONFIG_* settings directly. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
6ab3d5624e172c553004ecc862bfeac16d9d68b7 |
|
30-Jun-2006 |
Jörn Engel <joern@wohnheim.fh-wedel.de> |
Remove obsolete #include <linux/config.h> Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
/drivers/media/video/pwc/pwc.h
|
b20c3cf0c225df1445fa220de175b8d9bc1c3659 |
|
23-Jun-2006 |
Adrian Bunk <bunk@stusta.de> |
V4L/DVB (4147): Drivers/media/video/pwc/: make code static This patch makes the following needlessly global code static: - pwc-ctrl.c: pwc_get_leds() - pwc_preferred_compression Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
5e87efa3b29c105f81fea785babafb098e4e046d |
|
05-Jun-2006 |
Mauro Carvalho Chehab <mchehab@infradead.org> |
V4L/DVB (4068): Removed all references to kernel stuff from videodev.h and videodev2.h 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>
/drivers/media/video/pwc/pwc.h
|
2b455db6d456ef2d44808a8377fd3bc832e08317 |
|
24-Apr-2006 |
Luc Saillard <luc@saillard.org> |
V4L/DVB (3835): [PATCH] update pwc driver Add v4l2 compatibility Include the decompressor (legal problem has been resolv by Alan Cox) Faster decoder and easier to maintain, optimize, ... Can export to userland compressed stream Support more cameras, lot of bugs are fixed. Signed-off-by: Luc Saillard <luc@saillard.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
d56410e0a594150c5ca06319da7bc8901c4d455e |
|
25-Mar-2006 |
Mauro Carvalho Chehab <mchehab@infradead.org> |
V4L/DVB (3599b): Whitespace cleanups under drivers/media Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|
9f6933be665ce3b049c274c99810ac754edabf19 |
|
25-Mar-2006 |
Mauro Carvalho Chehab <mchehab@infradead.org> |
V4L/DVB (3599a): Move drivers/usb/media to drivers/media/video Because of historic reasons, there are two separate directories with V4L stuff. Most drivers are located at driver/media/video. However, some code for USB Webcams were inserted under drivers/usb/media. This makes difficult for module authors to know were things should be. Also, makes Kconfig menu confusing for normal users. This patch moves all V4L content under drivers/usb/media to drivers/media/video, and fixes Kconfig/Makefile entries. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/pwc/pwc.h
|