diff options
Diffstat (limited to 'drivers/media/video/gspca/spca506.c')
-rw-r--r-- | drivers/media/video/gspca/spca506.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index a199298a6419..ab28cc23e415 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -543,18 +543,15 @@ static void sd_stopN(struct gspca_dev *gspca_dev) | |||
543 | } | 543 | } |
544 | 544 | ||
545 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 545 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
546 | struct gspca_frame *frame, /* target */ | 546 | u8 *data, /* isoc packet */ |
547 | __u8 *data, /* isoc packet */ | ||
548 | int len) /* iso packet length */ | 547 | int len) /* iso packet length */ |
549 | { | 548 | { |
550 | switch (data[0]) { | 549 | switch (data[0]) { |
551 | case 0: /* start of frame */ | 550 | case 0: /* start of frame */ |
552 | frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, | 551 | gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); |
553 | data, 0); | ||
554 | data += SPCA50X_OFFSET_DATA; | 552 | data += SPCA50X_OFFSET_DATA; |
555 | len -= SPCA50X_OFFSET_DATA; | 553 | len -= SPCA50X_OFFSET_DATA; |
556 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, | 554 | gspca_frame_add(gspca_dev, FIRST_PACKET, data, len); |
557 | data, len); | ||
558 | break; | 555 | break; |
559 | case 0xff: /* drop */ | 556 | case 0xff: /* drop */ |
560 | /* gspca_dev->last_packet_type = DISCARD_PACKET; */ | 557 | /* gspca_dev->last_packet_type = DISCARD_PACKET; */ |
@@ -562,8 +559,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
562 | default: | 559 | default: |
563 | data += 1; | 560 | data += 1; |
564 | len -= 1; | 561 | len -= 1; |
565 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, | 562 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
566 | data, len); | ||
567 | break; | 563 | break; |
568 | } | 564 | } |
569 | } | 565 | } |