diff options
Diffstat (limited to 'drivers/media/video/gspca/etoms.c')
-rw-r--r-- | drivers/media/video/gspca/etoms.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index c1461e63647f..9de86419ae1e 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -752,8 +752,7 @@ static void do_autogain(struct gspca_dev *gspca_dev) | |||
752 | #undef LIMIT | 752 | #undef LIMIT |
753 | 753 | ||
754 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 754 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
755 | struct gspca_frame *frame, /* target */ | 755 | u8 *data, /* isoc packet */ |
756 | __u8 *data, /* isoc packet */ | ||
757 | int len) /* iso packet length */ | 756 | int len) /* iso packet length */ |
758 | { | 757 | { |
759 | int seqframe; | 758 | int seqframe; |
@@ -767,14 +766,13 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
767 | data[2], data[3], data[4], data[5]); | 766 | data[2], data[3], data[4], data[5]); |
768 | data += 30; | 767 | data += 30; |
769 | /* don't change datalength as the chips provided it */ | 768 | /* don't change datalength as the chips provided it */ |
770 | frame = gspca_frame_add(gspca_dev, LAST_PACKET, frame, | 769 | gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); |
771 | data, 0); | 770 | gspca_frame_add(gspca_dev, FIRST_PACKET, data, len); |
772 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, data, len); | ||
773 | return; | 771 | return; |
774 | } | 772 | } |
775 | if (len) { | 773 | if (len) { |
776 | data += 8; | 774 | data += 8; |
777 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); | 775 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
778 | } else { /* Drop Packet */ | 776 | } else { /* Drop Packet */ |
779 | gspca_dev->last_packet_type = DISCARD_PACKET; | 777 | gspca_dev->last_packet_type = DISCARD_PACKET; |
780 | } | 778 | } |