aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/ov534.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-06-12 02:20:46 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:07:44 -0400
commitc874f3aa7e66158dccb2b9f3cfc46c65af6c223d (patch)
tree72ad1a610908efb00bc00a4ccb76ba8e0c7fda3c /drivers/media/video/gspca/ov534.c
parenta0001a289f667e254eba51f2f729ec677daba503 (diff)
V4L/DVB (11973): gspca - ov534: Do the ov772x work again.
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>
Diffstat (limited to 'drivers/media/video/gspca/ov534.c')
-rw-r--r--drivers/media/video/gspca/ov534.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c
index 8d2164db3d6e..4b528b372911 100644
--- a/drivers/media/video/gspca/ov534.c
+++ b/drivers/media/video/gspca/ov534.c
@@ -948,9 +948,11 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, struct gspca_frame *frame,
948 __u32 this_pts; 948 __u32 this_pts;
949 u16 this_fid; 949 u16 this_fid;
950 int remaining_len = len; 950 int remaining_len = len;
951 int payload_len;
951 952
953 payload_len = gspca_dev->cam.bulk ? 2048 : 2040;
952 do { 954 do {
953 len = min(remaining_len, 2040); /*fixme: was 2048*/ 955 len = min(remaining_len, payload_len);
954 956
955 /* Payloads are prefixed with a UVC-style header. We 957 /* Payloads are prefixed with a UVC-style header. We
956 consider a frame to start when the FID toggles, or the PTS 958 consider a frame to start when the FID toggles, or the PTS