diff options
Diffstat (limited to 'drivers/media/video/gspca/spca501.c')
-rw-r--r-- | drivers/media/video/gspca/spca501.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 66f9f0056146..6761a3048a98 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -2032,20 +2032,15 @@ static void sd_stop0(struct gspca_dev *gspca_dev) | |||
2032 | } | 2032 | } |
2033 | 2033 | ||
2034 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, | 2034 | static void sd_pkt_scan(struct gspca_dev *gspca_dev, |
2035 | struct gspca_frame *frame, /* target */ | 2035 | u8 *data, /* isoc packet */ |
2036 | __u8 *data, /* isoc packet */ | ||
2037 | int len) /* iso packet length */ | 2036 | int len) /* iso packet length */ |
2038 | { | 2037 | { |
2039 | switch (data[0]) { | 2038 | switch (data[0]) { |
2040 | case 0: /* start of frame */ | 2039 | case 0: /* start of frame */ |
2041 | frame = gspca_frame_add(gspca_dev, | 2040 | gspca_frame_add(gspca_dev, LAST_PACKET, NULL, 0); |
2042 | LAST_PACKET, | ||
2043 | frame, | ||
2044 | data, 0); | ||
2045 | data += SPCA501_OFFSET_DATA; | 2041 | data += SPCA501_OFFSET_DATA; |
2046 | len -= SPCA501_OFFSET_DATA; | 2042 | len -= SPCA501_OFFSET_DATA; |
2047 | gspca_frame_add(gspca_dev, FIRST_PACKET, frame, | 2043 | gspca_frame_add(gspca_dev, FIRST_PACKET, data, len); |
2048 | data, len); | ||
2049 | return; | 2044 | return; |
2050 | case 0xff: /* drop */ | 2045 | case 0xff: /* drop */ |
2051 | /* gspca_dev->last_packet_type = DISCARD_PACKET; */ | 2046 | /* gspca_dev->last_packet_type = DISCARD_PACKET; */ |
@@ -2053,8 +2048,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, | |||
2053 | } | 2048 | } |
2054 | data++; | 2049 | data++; |
2055 | len--; | 2050 | len--; |
2056 | gspca_frame_add(gspca_dev, INTER_PACKET, frame, | 2051 | gspca_frame_add(gspca_dev, INTER_PACKET, data, len); |
2057 | data, len); | ||
2058 | } | 2052 | } |
2059 | 2053 | ||
2060 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) | 2054 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val) |