linux/drivers/media/video/pwc
Hans de Goede 24be689bfb [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>
2012-01-16 11:27:58 -02:00
..
Kconfig [media] pwc: Replace private buffer management code with videobuf2 2011-07-27 17:53:43 -03:00
Makefile
philips.txt tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
pwc-ctrl.c [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc-dec1.c [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc-dec1.h [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc-dec23.c [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc-dec23.h [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc-if.c [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc-kiara.c [media] pwc: clean-up header files 2011-07-27 17:55:37 -03:00
pwc-kiara.h [media] pwc: Remove driver specific ioctls 2012-01-06 10:46:05 -02:00
pwc-misc.c [media] pwc: Fix pixfmt handling 2012-01-16 11:08:26 -02:00
pwc-nala.h
pwc-timon.c
pwc-timon.h [media] pwc: Remove driver specific ioctls 2012-01-06 10:46:05 -02:00
pwc-uncompress.c [media] pwc: Remove software emulation of arbritary resolutions 2012-01-06 10:46:46 -02:00
pwc-v4l.c [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00
pwc.h [media] pwc: Use one shared usb command buffer 2012-01-16 11:27:58 -02:00