Laurent Pinchart schrieb am Mittwoch, den 28. Oktober um 13:44 Uhr:
> Could you please try the following patch ? It disables the quirk for
> compressed formats.
This patch does not apply here (Vanilla Kernel Linux 2.6.31.5).
I suppose this would be equivalent:
diff --git a/drivers/media/video/uvc/uvc_video.c
b/drivers/media/video/uvc/uvc_video.c
index 01b633c..df8a335 100644
--- a/drivers/media/video/uvc/uvc_video.c
+++ b/drivers/media/video/uvc/uvc_video.c
@@ -90,7 +90,8 @@ static void uvc_fixup_video_ctrl(struct uvc_video_device
*video,
ctrl->dwMaxVideoFrameSize =
frame->dwMaxVideoFrameBufferSize;
- if (video->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH &&
+ if (!(format->flags & UVC_FMT_FLAG_COMPRESSED) &&
+ video->dev->quirks & UVC_QUIRK_FIX_BANDWIDTH &&
video->streaming->intf->num_altsetting > 1) {
u32 interval;
u32 bandwidth;
The above change _does_ make it work the same as getting rid of the quirks
altogether. There might be different firmware Version of the devices
around.
BTW wouldn't it be better to make the quirks module parameter _overwrite_
camera specific quirks altogether instead of adding them with xor? This way
I would have been able to disable the quirks without patching the module.
Sven
--
"Those who do not understand Unix are condemned to reinvent it, poorly"
(Henry Spencer)
/me is gig...@ircnet, http://sven.gegg.us/ on the Web
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel