aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-04-28 09:20:50 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-07 15:15:00 -0400
commit4b8ceb6c1539d776de8aec587902d8e0e2705390 (patch)
treed61c2ae4569afd64ce16bd14d8bc6f88d889232e
parentccab75e2831301a03ca1b126aa7375025dc50c88 (diff)
[media] gspca_pac7311: Convert multi-line comments to standard kernel style
Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/pac7311.c62
1 files changed, 33 insertions, 29 deletions
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
index 81f018406bbd..54b4ab68f0b5 100644
--- a/drivers/media/video/gspca/pac7311.c
+++ b/drivers/media/video/gspca/pac7311.c
@@ -20,29 +20,29 @@
20 */ 20 */
21 21
22/* Some documentation about various registers as determined by trial and error. 22/* Some documentation about various registers as determined by trial and error.
23 23 *
24 Register page 1: 24 * Register page 1:
25 25 *
26 Address Description 26 * Address Description
27 0x08 Unknown compressor related, must always be 8 except when not 27 * 0x08 Unknown compressor related, must always be 8 except when not
28 in 640x480 resolution and page 4 reg 2 <= 3 then set it to 9 ! 28 * in 640x480 resolution and page 4 reg 2 <= 3 then set it to 9 !
29 0x1b Auto white balance related, bit 0 is AWB enable (inverted) 29 * 0x1b Auto white balance related, bit 0 is AWB enable (inverted)
30 bits 345 seem to toggle per color gains on/off (inverted) 30 * bits 345 seem to toggle per color gains on/off (inverted)
31 0x78 Global control, bit 6 controls the LED (inverted) 31 * 0x78 Global control, bit 6 controls the LED (inverted)
32 0x80 JPEG compression ratio ? Best not touched 32 * 0x80 JPEG compression ratio ? Best not touched
33 33 *
34 Register page 4: 34 * Register page 4:
35 35 *
36 Address Description 36 * Address Description
37 0x02 Clock divider 2-63, fps =~ 60 / val. Must be a multiple of 3 on 37 * 0x02 Clock divider 2-63, fps =~ 60 / val. Must be a multiple of 3 on
38 the 7302, so one of 3, 6, 9, ..., except when between 6 and 12? 38 * the 7302, so one of 3, 6, 9, ..., except when between 6 and 12?
39 0x0f Master gain 1-245, low value = high gain 39 * 0x0f Master gain 1-245, low value = high gain
40 0x10 Another gain 0-15, limited influence (1-2x gain I guess) 40 * 0x10 Another gain 0-15, limited influence (1-2x gain I guess)
41 0x21 Bitfield: 0-1 unused, 2-3 vflip/hflip, 4-5 unknown, 6-7 unused 41 * 0x21 Bitfield: 0-1 unused, 2-3 vflip/hflip, 4-5 unknown, 6-7 unused
42 0x27 Seems to toggle various gains on / off, Setting bit 7 seems to 42 * 0x27 Seems to toggle various gains on / off, Setting bit 7 seems to
43 completely disable the analog amplification block. Set to 0x68 43 * completely disable the analog amplification block. Set to 0x68
44 for max gain, 0x14 for minimal gain. 44 * for max gain, 0x14 for minimal gain.
45*/ 45 */
46 46
47#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 47#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
48 48
@@ -403,8 +403,10 @@ static void setexposure(struct gspca_dev *gspca_dev)
403 /* load registers to sensor (Bit 0, auto clear) */ 403 /* load registers to sensor (Bit 0, auto clear) */
404 reg_w(gspca_dev, 0x11, 0x01); 404 reg_w(gspca_dev, 0x11, 0x01);
405 405
406 /* Page 1 register 8 must always be 0x08 except when not in 406 /*
407 640x480 mode and page 4 reg 2 <= 3 then it must be 9 */ 407 * Page 1 register 8 must always be 0x08 except when not in
408 * 640x480 mode and page 4 reg 2 <= 3 then it must be 9
409 */
408 reg_w(gspca_dev, 0xff, 0x01); 410 reg_w(gspca_dev, 0xff, 0x01);
409 if (gspca_dev->cam.cam_mode[(int)gspca_dev->curr_mode].priv && 411 if (gspca_dev->cam.cam_mode[(int)gspca_dev->curr_mode].priv &&
410 sd->ctrls[EXPOSURE].val <= 3) { 412 sd->ctrls[EXPOSURE].val <= 3) {
@@ -577,10 +579,12 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
577 if (sof) { 579 if (sof) {
578 int n, lum_offset, footer_length; 580 int n, lum_offset, footer_length;
579 581
580 /* 6 bytes after the FF D9 EOF marker a number of lumination 582 /*
581 bytes are send corresponding to different parts of the 583 * 6 bytes after the FF D9 EOF marker a number of lumination
582 image, the 14th and 15th byte after the EOF seem to 584 * bytes are send corresponding to different parts of the
583 correspond to the center of the image */ 585 * image, the 14th and 15th byte after the EOF seem to
586 * correspond to the center of the image.
587 */
584 lum_offset = 24 + sizeof pac_sof_marker; 588 lum_offset = 24 + sizeof pac_sof_marker;
585 footer_length = 26; 589 footer_length = 26;
586 590