mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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>
This commit is contained in:
parent
a0001a289f
commit
c874f3aa7e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue