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)
commit50144aeeb702ea105697ae5249f059ea3990b838
treebfc7fedca2655d99094b363ba09934cd6b5aadde
parentc90e777976f6237a0cdb644c6a9406907939b174
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