aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-07 07:31:16 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:17:59 -0400
commitc41492c89a00630c7482eae25deaf9af91b73c98 (patch)
tree9b42d5644b7ec6d5e1c48f264aab4ead5c4659af
parentf87086e302300fdff1bd32049deb7a7f3e3de7da (diff)
V4L/DVB (8231): gspca: Do not declare the webcams declared by other drivers.
etoms: Do not declare the webcams declared by the driver et61x251. sonixb, sonixj: Do not declare the webcams declared by the driver sn9c102. zc3xx: Do not declare the webcams declared by the driver zc0301. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/gspca/etoms.c2
-rw-r--r--drivers/media/video/gspca/sonixb.c2
-rw-r--r--drivers/media/video/gspca/sonixj.c4
-rw-r--r--drivers/media/video/gspca/vc032x.c16
-rw-r--r--drivers/media/video/gspca/zc3xx.c23
5 files changed, 33 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index 4db33618af6b..1da6a182561f 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -912,7 +912,9 @@ static struct sd_desc sd_desc = {
912/* -- module initialisation -- */ 912/* -- module initialisation -- */
913#define DVNM(name) .driver_info = (kernel_ulong_t) name 913#define DVNM(name) .driver_info = (kernel_ulong_t) name
914static __devinitdata struct usb_device_id device_table[] = { 914static __devinitdata struct usb_device_id device_table[] = {
915#ifndef CONFIG_USB_ET61X251
915 {USB_DEVICE(0x102c, 0x6151), DVNM("Qcam Sangha CIF")}, 916 {USB_DEVICE(0x102c, 0x6151), DVNM("Qcam Sangha CIF")},
917#endif
916 {USB_DEVICE(0x102c, 0x6251), DVNM("Qcam xxxxxx VGA")}, 918 {USB_DEVICE(0x102c, 0x6251), DVNM("Qcam xxxxxx VGA")},
917 {} 919 {}
918}; 920};
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c
index 3dbeadf23e19..95a6a8e98b97 100644
--- a/drivers/media/video/gspca/sonixb.c
+++ b/drivers/media/video/gspca/sonixb.c
@@ -858,6 +858,7 @@ static struct sd_desc sd_desc = {
858/* -- module initialisation -- */ 858/* -- module initialisation -- */
859#define DVNM(name) .driver_info = (kernel_ulong_t) name 859#define DVNM(name) .driver_info = (kernel_ulong_t) name
860static __devinitdata struct usb_device_id device_table[] = { 860static __devinitdata struct usb_device_id device_table[] = {
861#ifndef CONFIG_USB_SN9C102
861 {USB_DEVICE(0x0c45, 0x6001), DVNM("Genius VideoCAM NB")}, 862 {USB_DEVICE(0x0c45, 0x6001), DVNM("Genius VideoCAM NB")},
862 {USB_DEVICE(0x0c45, 0x6005), DVNM("Sweex Tas5110")}, 863 {USB_DEVICE(0x0c45, 0x6005), DVNM("Sweex Tas5110")},
863 {USB_DEVICE(0x0c45, 0x6007), DVNM("Sonix sn9c101 + Tas5110D")}, 864 {USB_DEVICE(0x0c45, 0x6007), DVNM("Sonix sn9c101 + Tas5110D")},
@@ -874,6 +875,7 @@ static __devinitdata struct usb_device_id device_table[] = {
874 {USB_DEVICE(0x0c45, 0x602e), DVNM("Genius VideoCam Messenger")}, 875 {USB_DEVICE(0x0c45, 0x602e), DVNM("Genius VideoCam Messenger")},
875 {USB_DEVICE(0x0c45, 0x60af), DVNM("Trust WB3100P")}, 876 {USB_DEVICE(0x0c45, 0x60af), DVNM("Trust WB3100P")},
876 {USB_DEVICE(0x0c45, 0x60b0), DVNM("Genius VideoCam Look")}, 877 {USB_DEVICE(0x0c45, 0x60b0), DVNM("Genius VideoCam Look")},
878#endif
877 {} 879 {}
878}; 880};
879MODULE_DEVICE_TABLE(usb, device_table); 881MODULE_DEVICE_TABLE(usb, device_table);
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index 3db6487a705d..4cb1421b8807 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/drivers/media/video/gspca/sonixj.c
@@ -1606,11 +1606,13 @@ static const struct sd_desc sd_desc = {
1606/* -- module initialisation -- */ 1606/* -- module initialisation -- */
1607#define DVNM(name) .driver_info = (kernel_ulong_t) name 1607#define DVNM(name) .driver_info = (kernel_ulong_t) name
1608static const __devinitdata struct usb_device_id device_table[] = { 1608static const __devinitdata struct usb_device_id device_table[] = {
1609#ifndef CONFIG_USB_SN9C102
1609 {USB_DEVICE(0x0458, 0x7025), DVNM("Genius Eye 311Q")}, 1610 {USB_DEVICE(0x0458, 0x7025), DVNM("Genius Eye 311Q")},
1610 {USB_DEVICE(0x045e, 0x00f5), DVNM("MicroSoft VX3000")}, 1611 {USB_DEVICE(0x045e, 0x00f5), DVNM("MicroSoft VX3000")},
1611 {USB_DEVICE(0x045e, 0x00f7), DVNM("MicroSoft VX1000")}, 1612 {USB_DEVICE(0x045e, 0x00f7), DVNM("MicroSoft VX1000")},
1612 {USB_DEVICE(0x0471, 0x0327), DVNM("Philips SPC 600 NC")}, 1613 {USB_DEVICE(0x0471, 0x0327), DVNM("Philips SPC 600 NC")},
1613 {USB_DEVICE(0x0471, 0x0328), DVNM("Philips SPC 700 NC")}, 1614 {USB_DEVICE(0x0471, 0x0328), DVNM("Philips SPC 700 NC")},
1615#endif
1614 {USB_DEVICE(0x0471, 0x0330), DVNM("Philips SPC 710NC")}, 1616 {USB_DEVICE(0x0471, 0x0330), DVNM("Philips SPC 710NC")},
1615 {USB_DEVICE(0x0c45, 0x6040), DVNM("Speed NVC 350K")}, 1617 {USB_DEVICE(0x0c45, 0x6040), DVNM("Speed NVC 350K")},
1616 {USB_DEVICE(0x0c45, 0x607c), DVNM("Sonix sn9c102p Hv7131R")}, 1618 {USB_DEVICE(0x0c45, 0x607c), DVNM("Sonix sn9c102p Hv7131R")},
@@ -1620,10 +1622,12 @@ static const __devinitdata struct usb_device_id device_table[] = {
1620 {USB_DEVICE(0x0c45, 0x60fc), DVNM("LG-LIC300")}, 1622 {USB_DEVICE(0x0c45, 0x60fc), DVNM("LG-LIC300")},
1621 {USB_DEVICE(0x0c45, 0x612a), DVNM("Avant Camera")}, 1623 {USB_DEVICE(0x0c45, 0x612a), DVNM("Avant Camera")},
1622 {USB_DEVICE(0x0c45, 0x612c), DVNM("Typhoon Rasy Cam 1.3MPix")}, 1624 {USB_DEVICE(0x0c45, 0x612c), DVNM("Typhoon Rasy Cam 1.3MPix")},
1625#ifndef CONFIG_USB_SN9C102
1623 {USB_DEVICE(0x0c45, 0x6130), DVNM("Sonix Pccam")}, 1626 {USB_DEVICE(0x0c45, 0x6130), DVNM("Sonix Pccam")},
1624 {USB_DEVICE(0x0c45, 0x6138), DVNM("Sn9c120 Mo4000")}, 1627 {USB_DEVICE(0x0c45, 0x6138), DVNM("Sn9c120 Mo4000")},
1625 {USB_DEVICE(0x0c45, 0x613b), DVNM("Surfer SN-206")}, 1628 {USB_DEVICE(0x0c45, 0x613b), DVNM("Surfer SN-206")},
1626 {USB_DEVICE(0x0c45, 0x613c), DVNM("Sonix Pccam168")}, 1629 {USB_DEVICE(0x0c45, 0x613c), DVNM("Sonix Pccam168")},
1630#endif
1627 {} 1631 {}
1628}; 1632};
1629MODULE_DEVICE_TABLE(usb, device_table); 1633MODULE_DEVICE_TABLE(usb, device_table);
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index afbbbd290560..7ca6240c64e1 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -1332,20 +1332,20 @@ static __u8 i2c_write(struct usb_device *dev,
1332 if (size > 3 || size < 1) 1332 if (size > 3 || size < 1)
1333 return -EINVAL; 1333 return -EINVAL;
1334 reg_r(dev, 0xa1, 0xb33f, &retbyte, 1); 1334 reg_r(dev, 0xa1, 0xb33f, &retbyte, 1);
1335 reg_w(dev, 0xa0, size , 0xb334); 1335 reg_w(dev, 0xa0, size, 0xb334);
1336 reg_w(dev, 0xa0, reg , 0xb33a); 1336 reg_w(dev, 0xa0, reg, 0xb33a);
1337 switch (size) { 1337 switch (size) {
1338 case 1: 1338 case 1:
1339 reg_w(dev, 0xa0, val[0] , 0xb336); 1339 reg_w(dev, 0xa0, val[0], 0xb336);
1340 break; 1340 break;
1341 case 2: 1341 case 2:
1342 reg_w(dev, 0xa0, val[0] , 0xb336); 1342 reg_w(dev, 0xa0, val[0], 0xb336);
1343 reg_w(dev, 0xa0, val[1] , 0xb337); 1343 reg_w(dev, 0xa0, val[1], 0xb337);
1344 break; 1344 break;
1345 case 3: 1345 case 3:
1346 reg_w(dev, 0xa0, val[0] , 0xb336); 1346 reg_w(dev, 0xa0, val[0], 0xb336);
1347 reg_w(dev, 0xa0, val[1] , 0xb337); 1347 reg_w(dev, 0xa0, val[1], 0xb337);
1348 reg_w(dev, 0xa0, val[2] , 0xb338); 1348 reg_w(dev, 0xa0, val[2], 0xb338);
1349 break; 1349 break;
1350 default: 1350 default:
1351 reg_w(dev, 0xa0, 0x01, 0xb334); 1351 reg_w(dev, 0xa0, 0x01, 0xb334);
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index eed9a8baf4ee..bac45a193653 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -7132,10 +7132,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
7132 gspca_dev->nbalt--; 7132 gspca_dev->nbalt--;
7133 if (vga) { 7133 if (vga) {
7134 cam->cam_mode = vga_mode; 7134 cam->cam_mode = vga_mode;
7135 cam->nmodes = sizeof vga_mode / sizeof vga_mode[0]; 7135 cam->nmodes = ARRAY_SIZE(vga_mode);
7136 } else { 7136 } else {
7137 cam->cam_mode = sif_mode; 7137 cam->cam_mode = sif_mode;
7138 cam->nmodes = sizeof sif_mode / sizeof sif_mode[0]; 7138 cam->nmodes = ARRAY_SIZE(sif_mode);
7139 } 7139 }
7140 sd->qindex = 1; 7140 sd->qindex = 1;
7141 sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value; 7141 sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value;
@@ -7498,21 +7498,26 @@ static const struct sd_desc sd_desc = {
7498#define DVNM(name) .driver_info = (kernel_ulong_t) name 7498#define DVNM(name) .driver_info = (kernel_ulong_t) name
7499static const __devinitdata struct usb_device_id device_table[] = { 7499static const __devinitdata struct usb_device_id device_table[] = {
7500 {USB_DEVICE(0x041e, 0x041e), DVNM("Creative WebCam Live!")}, 7500 {USB_DEVICE(0x041e, 0x041e), DVNM("Creative WebCam Live!")},
7501#ifndef CONFIG_USB_ZC0301
7501 {USB_DEVICE(0x041e, 0x4017), DVNM("Creative Webcam Mobile PD1090")}, 7502 {USB_DEVICE(0x041e, 0x4017), DVNM("Creative Webcam Mobile PD1090")},
7502 {USB_DEVICE(0x041e, 0x401c), DVNM("Creative NX")}, 7503 {USB_DEVICE(0x041e, 0x401c), DVNM("Creative NX")},
7503 {USB_DEVICE(0x041e, 0x401e), DVNM("Creative Nx Pro")}, 7504 {USB_DEVICE(0x041e, 0x401e), DVNM("Creative Nx Pro")},
7504 {USB_DEVICE(0x041e, 0x401f), DVNM("Creative Webcam Notebook PD1171")}, 7505 {USB_DEVICE(0x041e, 0x401f), DVNM("Creative Webcam Notebook PD1171")},
7505/*0x041e, 0x4022*/ 7506#endif
7506 {USB_DEVICE(0x041e, 0x4029), DVNM("Creative WebCam Vista Pro")}, 7507 {USB_DEVICE(0x041e, 0x4029), DVNM("Creative WebCam Vista Pro")},
7508#ifndef CONFIG_USB_ZC0301
7507 {USB_DEVICE(0x041e, 0x4034), DVNM("Creative Instant P0620")}, 7509 {USB_DEVICE(0x041e, 0x4034), DVNM("Creative Instant P0620")},
7508 {USB_DEVICE(0x041e, 0x4035), DVNM("Creative Instant P0620D")}, 7510 {USB_DEVICE(0x041e, 0x4035), DVNM("Creative Instant P0620D")},
7509 {USB_DEVICE(0x041e, 0x4036), DVNM("Creative Live !")}, 7511 {USB_DEVICE(0x041e, 0x4036), DVNM("Creative Live !")},
7510 {USB_DEVICE(0x041e, 0x403a), DVNM("Creative Nx Pro 2")}, 7512 {USB_DEVICE(0x041e, 0x403a), DVNM("Creative Nx Pro 2")},
7513#endif
7511 {USB_DEVICE(0x041e, 0x4051), DVNM("Creative Notebook Pro (VF0250)")}, 7514 {USB_DEVICE(0x041e, 0x4051), DVNM("Creative Notebook Pro (VF0250)")},
7512 {USB_DEVICE(0x041e, 0x4053), DVNM("Creative Live!Cam Video IM")}, 7515 {USB_DEVICE(0x041e, 0x4053), DVNM("Creative Live!Cam Video IM")},
7516#ifndef CONFIG_USB_ZC0301
7513 {USB_DEVICE(0x0458, 0x7007), DVNM("Genius VideoCam V2")}, 7517 {USB_DEVICE(0x0458, 0x7007), DVNM("Genius VideoCam V2")},
7514 {USB_DEVICE(0x0458, 0x700c), DVNM("Genius VideoCam V3")}, 7518 {USB_DEVICE(0x0458, 0x700c), DVNM("Genius VideoCam V3")},
7515 {USB_DEVICE(0x0458, 0x700f), DVNM("Genius VideoCam Web V2")}, 7519 {USB_DEVICE(0x0458, 0x700f), DVNM("Genius VideoCam Web V2")},
7520#endif
7516 {USB_DEVICE(0x0461, 0x0a00), DVNM("MicroInnovation WebCam320")}, 7521 {USB_DEVICE(0x0461, 0x0a00), DVNM("MicroInnovation WebCam320")},
7517 {USB_DEVICE(0x046d, 0x08a0), DVNM("Logitech QC IM")}, 7522 {USB_DEVICE(0x046d, 0x08a0), DVNM("Logitech QC IM")},
7518 {USB_DEVICE(0x046d, 0x08a1), DVNM("Logitech QC IM 0x08A1 +sound")}, 7523 {USB_DEVICE(0x046d, 0x08a1), DVNM("Logitech QC IM 0x08A1 +sound")},
@@ -7521,10 +7526,12 @@ static const __devinitdata struct usb_device_id device_table[] = {
7521 {USB_DEVICE(0x046d, 0x08a6), DVNM("Logitech QCim")}, 7526 {USB_DEVICE(0x046d, 0x08a6), DVNM("Logitech QCim")},
7522 {USB_DEVICE(0x046d, 0x08a7), DVNM("Logitech QuickCam Image")}, 7527 {USB_DEVICE(0x046d, 0x08a7), DVNM("Logitech QuickCam Image")},
7523 {USB_DEVICE(0x046d, 0x08a9), DVNM("Logitech Notebook Deluxe")}, 7528 {USB_DEVICE(0x046d, 0x08a9), DVNM("Logitech Notebook Deluxe")},
7524 {USB_DEVICE(0x046d, 0x08aa), DVNM("Labtec Webcam Notebook")}, 7529 {USB_DEVICE(0x046d, 0x08aa), DVNM("Labtec Webcam Notebook")},
7525 {USB_DEVICE(0x046d, 0x08ac), DVNM("Logitech QuickCam Cool")}, 7530 {USB_DEVICE(0x046d, 0x08ac), DVNM("Logitech QuickCam Cool")},
7526 {USB_DEVICE(0x046d, 0x08ad), DVNM("Logitech QCCommunicate STX")}, 7531 {USB_DEVICE(0x046d, 0x08ad), DVNM("Logitech QCCommunicate STX")},
7532#ifndef CONFIG_USB_ZC0301
7527 {USB_DEVICE(0x046d, 0x08ae), DVNM("Logitech QuickCam for Notebooks")}, 7533 {USB_DEVICE(0x046d, 0x08ae), DVNM("Logitech QuickCam for Notebooks")},
7534#endif
7528 {USB_DEVICE(0x046d, 0x08af), DVNM("Logitech QuickCam Cool")}, 7535 {USB_DEVICE(0x046d, 0x08af), DVNM("Logitech QuickCam Cool")},
7529 {USB_DEVICE(0x046d, 0x08b9), DVNM("Logitech QC IM ???")}, 7536 {USB_DEVICE(0x046d, 0x08b9), DVNM("Logitech QC IM ???")},
7530 {USB_DEVICE(0x046d, 0x08d7), DVNM("Logitech QCam STX")}, 7537 {USB_DEVICE(0x046d, 0x08d7), DVNM("Logitech QCam STX")},
@@ -7537,18 +7544,22 @@ static const __devinitdata struct usb_device_id device_table[] = {
7537 {USB_DEVICE(0x0471, 0x032d), DVNM("Philips spc210nc")}, 7544 {USB_DEVICE(0x0471, 0x032d), DVNM("Philips spc210nc")},
7538 {USB_DEVICE(0x0471, 0x032e), DVNM("Philips spc315nc")}, 7545 {USB_DEVICE(0x0471, 0x032e), DVNM("Philips spc315nc")},
7539 {USB_DEVICE(0x055f, 0xc005), DVNM("Mustek Wcam300A")}, 7546 {USB_DEVICE(0x055f, 0xc005), DVNM("Mustek Wcam300A")},
7547#ifndef CONFIG_USB_ZC0301
7540 {USB_DEVICE(0x055f, 0xd003), DVNM("Mustek WCam300A")}, 7548 {USB_DEVICE(0x055f, 0xd003), DVNM("Mustek WCam300A")},
7541 {USB_DEVICE(0x055f, 0xd004), DVNM("Mustek WCam300 AN")}, 7549 {USB_DEVICE(0x055f, 0xd004), DVNM("Mustek WCam300 AN")},
7550#endif
7542 {USB_DEVICE(0x0698, 0x2003), DVNM("CTX M730V built in")}, 7551 {USB_DEVICE(0x0698, 0x2003), DVNM("CTX M730V built in")},
7543/*0x0ac8, 0x0301*/
7544 {USB_DEVICE(0x0ac8, 0x0302), DVNM("Z-star Vimicro zc0302")}, 7552 {USB_DEVICE(0x0ac8, 0x0302), DVNM("Z-star Vimicro zc0302")},
7553#ifndef CONFIG_USB_ZC0301
7545 {USB_DEVICE(0x0ac8, 0x301b), DVNM("Z-Star zc301b")}, 7554 {USB_DEVICE(0x0ac8, 0x301b), DVNM("Z-Star zc301b")},
7546 {USB_DEVICE(0x0ac8, 0x303b), DVNM("Vimicro 0x303b")}, 7555 {USB_DEVICE(0x0ac8, 0x303b), DVNM("Vimicro 0x303b")},
7556#endif
7547 {USB_DEVICE(0x0ac8, 0x305b), DVNM("Z-star Vimicro zc0305b")}, 7557 {USB_DEVICE(0x0ac8, 0x305b), DVNM("Z-star Vimicro zc0305b")},
7558#ifndef CONFIG_USB_ZC0301
7548 {USB_DEVICE(0x0ac8, 0x307b), DVNM("Z-Star 307b")}, 7559 {USB_DEVICE(0x0ac8, 0x307b), DVNM("Z-Star 307b")},
7549 {USB_DEVICE(0x10fd, 0x0128), DVNM("Typhoon Webshot II 300k 0x0128")}, 7560 {USB_DEVICE(0x10fd, 0x0128), DVNM("Typhoon Webshot II 300k 0x0128")},
7550/*0x10fd, 0x804e*/
7551 {USB_DEVICE(0x10fd, 0x8050), DVNM("Typhoon Webshot II USB 300k")}, 7561 {USB_DEVICE(0x10fd, 0x8050), DVNM("Typhoon Webshot II USB 300k")},
7562#endif
7552 {} /* end of entry */ 7563 {} /* end of entry */
7553}; 7564};
7554#undef DVNAME 7565#undef DVNAME