Vasily Khoruzhick schrieb:
There's a jpeg parameter for sn9c20x.ko module to disable jpeg, by default jpeg is enabled. So now, it's up to user to decide whether use jpeg or yuv420. Maybe, in next versions driver will detect if cam sits on usb1 and enable jpeg only for these cases.

Nice idea. I attached a patch that should do the trick. But we'll need to wait for the next libv4l until we can push it anyway.

GWater
From ea4d4504ccdee2916555ea0c4f593b2066d05b6e Mon Sep 17 00:00:00 2001
From: GWater <[email protected]>
Date: Sat, 10 Jan 2009 16:24:32 +0100
Subject: [PATCH] Disable JPEG for high speed USB 2.0 connections

Signed-off-by: GWater <[email protected]>
---
 sn9c20x-usb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sn9c20x-usb.c b/sn9c20x-usb.c
index f001016..0b6ec15 100644
--- a/sn9c20x-usb.c
+++ b/sn9c20x-usb.c
@@ -827,6 +827,9 @@ static int usb_sn9c20x_probe(struct usb_interface 
*interface, const struct usb_d
 
        usb_sn9c20x_default_settings(dev);
 
+       if (dev->udev->speed == USB_SPEED_HIGH && bandwidth == 8)
+               jpeg = 0;
+
        return 0;
 
 free_dev:
-- 
1.6.0.6

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to