]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (10652): uvcvideo: Add quirk to override wrong bandwidth value for Vimicro...
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Mon, 16 Feb 2009 20:41:52 +0000 (17:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:51 +0000 (12:42 -0300)
commit6fa702a5a54ff9f2ccd544116b1eefc046af2bfa
treebfc7fedca2655d99094b363ba09934cd6b5aadde
parent0a0021dd2931fee8ab29e2d777e2468841d30785
V4L/DVB (10652): uvcvideo: Add quirk to override wrong bandwidth value for Vimicro devices

At least 3 Vimicro cameras (0x332d, 0x3410 and 0x3420) fail to return correct
bandwidth information. The first model rounds the value provided by the host
to the nearest supported packet size, while the other two always request the
maximum bandwidth.

Introduce a device quirk to override the value returned by the device with an
estimated bandwidth computed by the driver from the frame size and frame rate,
and enable it for all Vimicro cameras.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_driver.c
drivers/media/video/uvc/uvc_video.c
drivers/media/video/uvc/uvcvideo.h