aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/gspca/etoms.c4
-rw-r--r--drivers/media/video/gspca/gspca.c8
-rw-r--r--drivers/media/video/gspca/mars.c6
-rw-r--r--drivers/media/video/gspca/pac207.c24
-rw-r--r--drivers/media/video/gspca/pac7311.c3
-rw-r--r--drivers/media/video/gspca/sonixb.c2
-rw-r--r--drivers/media/video/gspca/sonixj.c2
-rw-r--r--drivers/media/video/gspca/spca500.c9
-rw-r--r--drivers/media/video/gspca/spca505.c2
-rw-r--r--drivers/media/video/gspca/sunplus.c6
10 files changed, 35 insertions, 31 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index c479f638413e..195b8123ba75 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -233,7 +233,7 @@ static void Et_RegWrite(struct usb_device *dev,
233 0, index, buffer, len, 500); 233 0, index, buffer, len, 500);
234} 234}
235 235
236static int Et_i2cwrite(struct usb_device *dev, __u8 reg, __u8 * buffer, 236static int Et_i2cwrite(struct usb_device *dev, __u8 reg, __u8 *buffer,
237 __u16 length, __u8 mode) 237 __u16 length, __u8 mode)
238{ 238{
239/* buffer should be [D0..D7] */ 239/* buffer should be [D0..D7] */
@@ -256,7 +256,7 @@ static int Et_i2cwrite(struct usb_device *dev, __u8 reg, __u8 * buffer,
256 return 0; 256 return 0;
257} 257}
258 258
259static int Et_i2cread(struct usb_device *dev, __u8 reg, __u8 * buffer, 259static int Et_i2cread(struct usb_device *dev, __u8 reg, __u8 *buffer,
260 __u16 length, __u8 mode) 260 __u16 length, __u8 mode)
261{ 261{
262/* buffer should be [D0..D7] */ 262/* buffer should be [D0..D7] */
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index c84e0b352f46..13cd9968f1f5 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -28,9 +28,9 @@
28#include <linux/mm.h> 28#include <linux/mm.h>
29#include <linux/string.h> 29#include <linux/string.h>
30#include <linux/pagemap.h> 30#include <linux/pagemap.h>
31#include <asm/io.h> 31#include <linux/io.h>
32#include <asm/page.h> 32#include <asm/page.h>
33#include <asm/uaccess.h> 33#include <linux/uaccess.h>
34#include <linux/jiffies.h> 34#include <linux/jiffies.h>
35 35
36#include "gspca.h" 36#include "gspca.h"
@@ -45,8 +45,8 @@ MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>");
45MODULE_DESCRIPTION("GSPCA USB Camera Driver"); 45MODULE_DESCRIPTION("GSPCA USB Camera Driver");
46MODULE_LICENSE("GPL"); 46MODULE_LICENSE("GPL");
47 47
48#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 0) 48#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 1)
49static const char version[] = "2.1.0"; 49static const char version[] = "2.1.1";
50 50
51static int video_nr = -1; 51static int video_nr = -1;
52 52
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c
index 48b861d68299..d8cd2148f301 100644
--- a/drivers/media/video/gspca/mars.c
+++ b/drivers/media/video/gspca/mars.c
@@ -220,13 +220,15 @@ static void sd_start(struct gspca_dev *gspca_dev)
220 if (0) { /* fixed dark-gain */ 220 if (0) { /* fixed dark-gain */
221 data[1] = 0; /* reg 94, Y Gain (1.75) */ 221 data[1] = 0; /* reg 94, Y Gain (1.75) */
222 data[2] = 0; /* reg 95, UV Gain (1.75) */ 222 data[2] = 0; /* reg 95, UV Gain (1.75) */
223 data[3] = 0x3f; /* reg 96, Y Gain/UV Gain/disable auto dark-gain */ 223 data[3] = 0x3f; /* reg 96, Y Gain/UV Gain/disable
224 * auto dark-gain */
224 data[4] = 0; /* reg 97, set fixed dark level */ 225 data[4] = 0; /* reg 97, set fixed dark level */
225 data[5] = 0; /* reg 98, don't care */ 226 data[5] = 0; /* reg 98, don't care */
226 } else { /* auto dark-gain */ 227 } else { /* auto dark-gain */
227 data[1] = 0; /* reg 94, Y Gain (auto) */ 228 data[1] = 0; /* reg 94, Y Gain (auto) */
228 data[2] = 0; /* reg 95, UV Gain (1.75) */ 229 data[2] = 0; /* reg 95, UV Gain (1.75) */
229 data[3] = 0x78; /* reg 96, Y Gain/UV Gain/disable auto dark-gain */ 230 data[3] = 0x78; /* reg 96, Y Gain/UV Gain/disable
231 * auto dark-gain */
230 switch (gspca_dev->width) { 232 switch (gspca_dev->width) {
231/* case 1280: */ 233/* case 1280: */
232/* data[4] = 154; 234/* data[4] = 154;
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c
index 008954e755f1..84986684c4db 100644
--- a/drivers/media/video/gspca/pac207.c
+++ b/drivers/media/video/gspca/pac207.c
@@ -452,30 +452,30 @@ static void pac207_do_auto_gain(struct gspca_dev *gspca_dev)
452 452
453 for (i = 0; i < steps; i++) { 453 for (i = 0; i < steps; i++) {
454 if (avg_lum > desired_avg_lum) { 454 if (avg_lum > desired_avg_lum) {
455 if (sd->gain > PAC207_GAIN_KNEE) { 455 if (sd->gain > PAC207_GAIN_KNEE)
456 sd->gain--; 456 sd->gain--;
457 } else if (sd->exposure > PAC207_EXPOSURE_KNEE) { 457 else if (sd->exposure > PAC207_EXPOSURE_KNEE)
458 sd->exposure--; 458 sd->exposure--;
459 } else if (sd->gain > PAC207_GAIN_DEFAULT) { 459 else if (sd->gain > PAC207_GAIN_DEFAULT)
460 sd->gain--; 460 sd->gain--;
461 } else if (sd->exposure > PAC207_EXPOSURE_MIN) { 461 else if (sd->exposure > PAC207_EXPOSURE_MIN)
462 sd->exposure--; 462 sd->exposure--;
463 } else if (sd->gain > PAC207_GAIN_MIN) { 463 else if (sd->gain > PAC207_GAIN_MIN)
464 sd->gain--; 464 sd->gain--;
465 } else 465 else
466 break; 466 break;
467 } else { 467 } else {
468 if (sd->gain < PAC207_GAIN_DEFAULT) { 468 if (sd->gain < PAC207_GAIN_DEFAULT)
469 sd->gain++; 469 sd->gain++;
470 } else if (sd->exposure < PAC207_EXPOSURE_KNEE) { 470 else if (sd->exposure < PAC207_EXPOSURE_KNEE)
471 sd->exposure++; 471 sd->exposure++;
472 } else if (sd->gain < PAC207_GAIN_KNEE) { 472 else if (sd->gain < PAC207_GAIN_KNEE)
473 sd->gain++; 473 sd->gain++;
474 } else if (sd->exposure < PAC207_EXPOSURE_MAX) { 474 else if (sd->exposure < PAC207_EXPOSURE_MAX)
475 sd->exposure++; 475 sd->exposure++;
476 } else if (sd->gain < PAC207_GAIN_MAX) { 476 else if (sd->gain < PAC207_GAIN_MAX)
477 sd->gain++; 477 sd->gain++;
478 } else 478 else
479 break; 479 break;
480 } 480 }
481 } 481 }
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
index 8f51976db995..14eb25d81848 100644
--- a/drivers/media/video/gspca/pac7311.c
+++ b/drivers/media/video/gspca/pac7311.c
@@ -714,7 +714,8 @@ static __devinitdata struct usb_device_id device_table[] = {
714 {USB_DEVICE(0x093a, 0x2601), DVNM("Philips SPC610NC")}, 714 {USB_DEVICE(0x093a, 0x2601), DVNM("Philips SPC610NC")},
715 {USB_DEVICE(0x093a, 0x2603), DVNM("PAC7312")}, 715 {USB_DEVICE(0x093a, 0x2603), DVNM("PAC7312")},
716 {USB_DEVICE(0x093a, 0x2608), DVNM("Trust WB-3300p")}, 716 {USB_DEVICE(0x093a, 0x2608), DVNM("Trust WB-3300p")},
717 {USB_DEVICE(0x093a, 0x260e), DVNM("Gigaware VGA PC Camera, Trust WB-3350p, SIGMA cam 2350")}, 717 {USB_DEVICE(0x093a, 0x260e), DVNM("Gigaware VGA PC Camera")},
718 /* and also ', Trust WB-3350p, SIGMA cam 2350' */
718 {USB_DEVICE(0x093a, 0x260f), DVNM("SnakeCam")}, 719 {USB_DEVICE(0x093a, 0x260f), DVNM("SnakeCam")},
719 {USB_DEVICE(0x093a, 0x2621), DVNM("PAC731x")}, 720 {USB_DEVICE(0x093a, 0x2621), DVNM("PAC731x")},
720 {} 721 {}
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c
index d26255ddfd5b..80911a21e4ae 100644
--- a/drivers/media/video/gspca/sonixb.c
+++ b/drivers/media/video/gspca/sonixb.c
@@ -831,7 +831,7 @@ static __devinitdata struct usb_device_id device_table[] = {
831 {USB_DEVICE(0x0c45, 0x6007), DVNM("Sonix sn9c101 + Tas5110D")}, 831 {USB_DEVICE(0x0c45, 0x6007), DVNM("Sonix sn9c101 + Tas5110D")},
832 {USB_DEVICE(0x0c45, 0x6009), DVNM("spcaCam@120")}, 832 {USB_DEVICE(0x0c45, 0x6009), DVNM("spcaCam@120")},
833 {USB_DEVICE(0x0c45, 0x600d), DVNM("spcaCam@120")}, 833 {USB_DEVICE(0x0c45, 0x600d), DVNM("spcaCam@120")},
834 {USB_DEVICE(0x0c45, 0x6011), DVNM("MAX Webcam Microdia-OV6650-SN9C101G")}, 834 {USB_DEVICE(0x0c45, 0x6011), DVNM("MAX Webcam Microdia")},
835 {USB_DEVICE(0x0c45, 0x6019), DVNM("Generic Sonix OV7630")}, 835 {USB_DEVICE(0x0c45, 0x6019), DVNM("Generic Sonix OV7630")},
836 {USB_DEVICE(0x0c45, 0x6024), DVNM("Generic Sonix Tas5130c")}, 836 {USB_DEVICE(0x0c45, 0x6024), DVNM("Generic Sonix Tas5130c")},
837 {USB_DEVICE(0x0c45, 0x6025), DVNM("Xcam Shanga")}, 837 {USB_DEVICE(0x0c45, 0x6025), DVNM("Xcam Shanga")},
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index 6180bc565ca1..e6a49fe2c4e3 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/drivers/media/video/gspca/sonixj.c
@@ -1076,7 +1076,7 @@ static unsigned int setexposure(struct gspca_dev *gspca_dev,
1076 | ((expo & 0x0003) << 4); 1076 | ((expo & 0x0003) << 4);
1077 i2c_w8(gspca_dev->dev, expoMo10); 1077 i2c_w8(gspca_dev->dev, expoMo10);
1078 i2c_w8(gspca_dev->dev, gainMo); 1078 i2c_w8(gspca_dev->dev, gainMo);
1079 PDEBUG(D_CONF," set exposure %d", 1079 PDEBUG(D_CONF, "set exposure %d",
1080 ((expoMo10[3] & 0x07) << 10) 1080 ((expoMo10[3] & 0x07) << 10)
1081 | (expoMof[3] << 2) 1081 | (expoMof[3] << 2)
1082 | ((expoMo10[3] & 0x30) >> 4)); 1082 | ((expoMo10[3] & 0x30) >> 4));
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c
index c0dd969a3106..e72fca5744ac 100644
--- a/drivers/media/video/gspca/spca500.c
+++ b/drivers/media/video/gspca/spca500.c
@@ -336,7 +336,7 @@ static unsigned char qtable_kodak_ez200[2][64] = {
336}; 336};
337 337
338static unsigned char qtable_pocketdv[2][64] = { 338static unsigned char qtable_pocketdv[2][64] = {
339 { /* Q-table Y-components start registers 0x8800 */ 339 { /* Q-table Y-components start registers 0x8800 */
340 0x06, 0x04, 0x04, 0x06, 0x0a, 0x10, 0x14, 0x18, 340 0x06, 0x04, 0x04, 0x06, 0x0a, 0x10, 0x14, 0x18,
341 0x05, 0x05, 0x06, 0x08, 0x0a, 0x17, 0x18, 0x16, 341 0x05, 0x05, 0x06, 0x08, 0x0a, 0x17, 0x18, 0x16,
342 0x06, 0x05, 0x06, 0x0a, 0x10, 0x17, 0x1c, 0x16, 342 0x06, 0x05, 0x06, 0x0a, 0x10, 0x17, 0x1c, 0x16,
@@ -346,7 +346,7 @@ static unsigned char qtable_pocketdv[2][64] = {
346 0x14, 0x1a, 0x1f, 0x23, 0x29, 0x30, 0x30, 0x28, 346 0x14, 0x1a, 0x1f, 0x23, 0x29, 0x30, 0x30, 0x28,
347 0x1d, 0x25, 0x26, 0x27, 0x2d, 0x28, 0x29, 0x28, 347 0x1d, 0x25, 0x26, 0x27, 0x2d, 0x28, 0x29, 0x28,
348 }, 348 },
349 { /* Q-table C-components start registers 0x8840 */ 349 { /* Q-table C-components start registers 0x8840 */
350 0x07, 0x07, 0x0a, 0x13, 0x28, 0x28, 0x28, 0x28, 350 0x07, 0x07, 0x0a, 0x13, 0x28, 0x28, 0x28, 0x28,
351 0x07, 0x08, 0x0a, 0x1a, 0x28, 0x28, 0x28, 0x28, 351 0x07, 0x08, 0x0a, 0x1a, 0x28, 0x28, 0x28, 0x28,
352 0x0a, 0x0a, 0x16, 0x28, 0x28, 0x28, 0x28, 0x28, 352 0x0a, 0x0a, 0x16, 0x28, 0x28, 0x28, 0x28, 0x28,
@@ -833,7 +833,8 @@ static void sd_start(struct gspca_dev *gspca_dev)
833 * - NWG (Sat 29th March 2003) */ 833 * - NWG (Sat 29th March 2003) */
834 834
835 /* do a full reset */ 835 /* do a full reset */
836 if ((err = spca500_full_reset(gspca_dev)) < 0) 836 err = spca500_full_reset(gspca_dev);
837 if (err < 0)
837 PDEBUG(D_ERR, "spca500_full_reset failed"); 838 PDEBUG(D_ERR, "spca500_full_reset failed");
838 839
839 /* enable drop packet */ 840 /* enable drop packet */
@@ -918,7 +919,7 @@ static void sd_start(struct gspca_dev *gspca_dev)
918 /* Init SDRAM - needed for SDRAM access */ 919 /* Init SDRAM - needed for SDRAM access */
919 reg_write(gspca_dev->dev, 0x00, 0x870a, 0x04); 920 reg_write(gspca_dev->dev, 0x00, 0x870a, 0x04);
920 921
921 spca500_setmode(gspca_dev,xmult,ymult); 922 spca500_setmode(gspca_dev, xmult, ymult);
922 /* switch to video camera mode */ 923 /* switch to video camera mode */
923 reg_write(gspca_dev->dev, 0x00, 0x8000, 0x0004); 924 reg_write(gspca_dev->dev, 0x00, 0x8000, 0x0004);
924 925
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c
index 5b23518d970d..d8ff121c2c5a 100644
--- a/drivers/media/video/gspca/spca505.c
+++ b/drivers/media/video/gspca/spca505.c
@@ -904,7 +904,7 @@ MODULE_DEVICE_TABLE(usb, device_table);
904static int sd_probe(struct usb_interface *intf, 904static int sd_probe(struct usb_interface *intf,
905 const struct usb_device_id *id) 905 const struct usb_device_id *id)
906{ 906{
907 return gspca_dev_probe(intf, id, &sd_desc, sizeof (struct sd), 907 return gspca_dev_probe(intf, id, &sd_desc, sizeof(struct sd),
908 THIS_MODULE); 908 THIS_MODULE);
909} 909}
910 910
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c
index 52d1b32523b1..25c5245725d6 100644
--- a/drivers/media/video/gspca/sunplus.c
+++ b/drivers/media/video/gspca/sunplus.c
@@ -24,8 +24,8 @@
24#include "gspca.h" 24#include "gspca.h"
25#include "jpeg.h" 25#include "jpeg.h"
26 26
27#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 0) 27#define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 1)
28static const char version[] = "2.1.0"; 28static const char version[] = "2.1.1";
29 29
30MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); 30MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>");
31MODULE_DESCRIPTION("GSPCA/SPCA5xx USB Camera Driver"); 31MODULE_DESCRIPTION("GSPCA/SPCA5xx USB Camera Driver");
@@ -459,7 +459,7 @@ static int reg_write(struct usb_device *dev,
459 USB_TYPE_VENDOR | USB_RECIP_DEVICE, 459 USB_TYPE_VENDOR | USB_RECIP_DEVICE,
460 value, index, NULL, 0, 500); 460 value, index, NULL, 0, 500);
461 PDEBUG(D_PACK, "reg write: 0x%02x,0x%02x:0x%02x, 0x%x", 461 PDEBUG(D_PACK, "reg write: 0x%02x,0x%02x:0x%02x, 0x%x",
462 reg, index, value, ret); 462 req, index, value, ret);
463 if (ret < 0) 463 if (ret < 0)
464 PDEBUG(D_ERR, "reg write: error %d", ret); 464 PDEBUG(D_ERR, "reg write: error %d", ret);
465 return ret; 465 return ret;