summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-06-12 08:20:46 +0200
committerJean-Francois Moine <moinejf@free.fr>2009-06-12 08:20:46 +0200
commit9c6048c72d19fffcc4cb08b2f146858d569d4318 (patch)
treed2dbf2d9fea225c3c26ded709a37d14b68a2a376 /linux
parentc38b05097ac62c51b41478fb09ef7225b93fb25b (diff)
downloadmediapointer-dvb-s2-9c6048c72d19fffcc4cb08b2f146858d569d4318.tar.gz
mediapointer-dvb-s2-9c6048c72d19fffcc4cb08b2f146858d569d4318.tar.bz2
gspca - ov534: Do the ov772x work again.
From: Jean-Francois Moine <moinejf@free.fr> The scan of the image packets of the sensor ov772x was broken when the sensor ov965x was added. Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/gspca/ov534.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/gspca/ov534.c b/linux/drivers/media/video/gspca/ov534.c
index 14341b6be..21a9366c7 100644
--- a/linux/drivers/media/video/gspca/ov534.c
+++ b/linux/drivers/media/video/gspca/ov534.c
@@ -958,9 +958,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