diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2009-02-16 21:41:52 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@skynet.be> | 2009-02-16 21:41:52 +0100 |
commit | b25818a3a4e324f54c59786922c73867af099253 (patch) | |
tree | eccec40f1bd876e322e47c68dea170f18444b1b1 /linux/drivers/media/video/uvc/uvcvideo.h | |
parent | e2a760f26ff7124de2bc6bed4647962dd7078d1b (diff) | |
download | mediapointer-dvb-s2-b25818a3a4e324f54c59786922c73867af099253.tar.gz mediapointer-dvb-s2-b25818a3a4e324f54c59786922c73867af099253.tar.bz2 |
uvcvideo: Add quirk to override wrong bandwidth value for Vimicro devices
From: Laurent Pinchart <laurent.pinchart@skynet.be>
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.
Priority: normal
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Diffstat (limited to 'linux/drivers/media/video/uvc/uvcvideo.h')
-rw-r--r-- | linux/drivers/media/video/uvc/uvcvideo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/uvc/uvcvideo.h b/linux/drivers/media/video/uvc/uvcvideo.h index 408b8b846..53d5c9e0c 100644 --- a/linux/drivers/media/video/uvc/uvcvideo.h +++ b/linux/drivers/media/video/uvc/uvcvideo.h @@ -315,6 +315,7 @@ struct uvc_xu_control { #define UVC_QUIRK_STREAM_NO_FID 0x00000010 #define UVC_QUIRK_IGNORE_SELECTOR_UNIT 0x00000020 #define UVC_QUIRK_PRUNE_CONTROLS 0x00000040 +#define UVC_QUIRK_FIX_BANDWIDTH 0x00000080 /* Format flags */ #define UVC_FMT_FLAG_COMPRESSED 0x00000001 |