]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (11973): gspca - ov534: Do the ov772x work again.
authorJean-Francois Moine <moinejf@free.fr>
Fri, 12 Jun 2009 06:20:46 +0000 (03:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 22:07:44 +0000 (19:07 -0300)
The scan of the image packets of the sensor ov772x was broken when
the sensor ov965x was added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/ov534.c

index 8d2164db3d6ea60f04706c056e0c833e7b5623bd..4b528b37291188f858c6c130bcb20b71790d278a 100644 (file)
@@ -948,9 +948,11 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, struct gspca_frame *frame,
        __u32 this_pts;
        u16 this_fid;
        int remaining_len = len;
+       int payload_len;
 
+       payload_len = gspca_dev->cam.bulk ? 2048 : 2040;
        do {
-               len = min(remaining_len, 2040);         /*fixme: was 2048*/
+               len = min(remaining_len, payload_len);
 
                /* Payloads are prefixed with a UVC-style header.  We
                   consider a frame to start when the FID toggles, or the PTS