diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-08-23 08:56:31 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-08-23 08:56:31 +0200 |
commit | f0d8aad4b2edd8a33896604bd049ac7c165ce5d8 (patch) | |
tree | da6bf772cb577a3232e983c14b32fad6b2277218 /linux/drivers | |
parent | 54f6f97bf9e23f31572aae02ee274fe0d66b296a (diff) | |
download | mediapointer-dvb-s2-f0d8aad4b2edd8a33896604bd049ac7c165ce5d8.tar.gz mediapointer-dvb-s2-f0d8aad4b2edd8a33896604bd049ac7c165ce5d8.tar.bz2 |
gspca: Adjust SOF detection for pac73xx.
From: Hans de Goede <j.w.r.degoede@hhs.nl>
Priority: high
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/gspca/pac7311.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/linux/drivers/media/video/gspca/pac7311.c b/linux/drivers/media/video/gspca/pac7311.c index cb2980279..4a849f190 100644 --- a/linux/drivers/media/video/gspca/pac7311.c +++ b/linux/drivers/media/video/gspca/pac7311.c @@ -70,7 +70,6 @@ struct sd { #define SENSOR_PAC7311 1 u8 sof_read; - u8 header_read; u8 autogain_ignore_frames; atomic_t avg_lum; @@ -759,8 +758,6 @@ static const unsigned char pac7311_jpeg_header2[] = { /* Include pac common sof detection functions */ #include "pac_common.h" -#define HEADER_LENGTH 2 - /* this function is run at interrupt level */ static void sd_pkt_scan(struct gspca_dev *gspca_dev, struct gspca_frame *frame, /* target */ @@ -834,22 +831,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev, gspca_frame_add(gspca_dev, INTER_PACKET, frame, tmpbuf, 4); gspca_frame_add(gspca_dev, INTER_PACKET, frame, pac7311_jpeg_header2, sizeof(pac7311_jpeg_header2)); - - sd->header_read = 0; } - - if (sd->header_read < HEADER_LENGTH) { - /* skip the variable part of the sof header */ - int needed = HEADER_LENGTH - sd->header_read; - if (len <= needed) { - sd->header_read += len; - return; - } - data += needed; - len -= needed; - sd->header_read = HEADER_LENGTH; - } - gspca_frame_add(gspca_dev, INTER_PACKET, frame, data, len); } |