diff options
author | Hans de Goede <j.w.r.degoede@hhs.nl> | 2008-09-03 16:12:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:37:38 -0400 |
commit | 8a5b2e909d56a1d5edec5e8f8848e03aafbc588e (patch) | |
tree | 3be1a890f11988cc75a1883bc9e2bc25bb0283ef /drivers/media/video/gspca/pac_common.h | |
parent | a1e8288b1d80130119692818b46694660f28e03a (diff) |
V4L/DVB (8825): gspca: More controls for pac73xx and new webcam 093a:2624.
-Add usb id for 093a:2624 (pac7302)
-Report some controls to userspace with 7302 only, as they are 7302 only
-Add gain and exposure controls
-Add autogain
-Fix 7302 imaged being mirrored by default
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/pac_common.h')
-rw-r--r-- | drivers/media/video/gspca/pac_common.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/pac_common.h b/drivers/media/video/gspca/pac_common.h index a19b5d44c009..34d4b1494cd5 100644 --- a/drivers/media/video/gspca/pac_common.h +++ b/drivers/media/video/gspca/pac_common.h | |||
@@ -23,6 +23,13 @@ | |||
23 | * | 23 | * |
24 | */ | 24 | */ |
25 | 25 | ||
26 | /* We calculate the autogain at the end of the transfer of a frame, at this | ||
27 | moment a frame with the old settings is being transmitted, and a frame is | ||
28 | being captured with the old settings. So if we adjust the autogain we must | ||
29 | ignore atleast the 2 next frames for the new settings to come into effect | ||
30 | before doing any other adjustments */ | ||
31 | #define PAC_AUTOGAIN_IGNORE_FRAMES 3 | ||
32 | |||
26 | static const unsigned char pac_sof_marker[5] = | 33 | static const unsigned char pac_sof_marker[5] = |
27 | { 0xff, 0xff, 0x00, 0xff, 0x96 }; | 34 | { 0xff, 0xff, 0x00, 0xff, 0x96 }; |
28 | 35 | ||
@@ -37,7 +44,7 @@ static unsigned char *pac_find_sof(struct gspca_dev *gspca_dev, | |||
37 | if (m[i] == pac_sof_marker[sd->sof_read]) { | 44 | if (m[i] == pac_sof_marker[sd->sof_read]) { |
38 | sd->sof_read++; | 45 | sd->sof_read++; |
39 | if (sd->sof_read == sizeof(pac_sof_marker)) { | 46 | if (sd->sof_read == sizeof(pac_sof_marker)) { |
40 | PDEBUG(D_STREAM, | 47 | PDEBUG(D_FRAM, |
41 | "SOF found, bytes to analyze: %u." | 48 | "SOF found, bytes to analyze: %u." |
42 | " Frame starts at byte #%u", | 49 | " Frame starts at byte #%u", |
43 | len, i + 1); | 50 | len, i + 1); |