diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-07-07 07:31:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:17:59 -0400 |
commit | c41492c89a00630c7482eae25deaf9af91b73c98 (patch) | |
tree | 9b42d5644b7ec6d5e1c48f264aab4ead5c4659af /drivers/media/video/gspca/zc3xx.c | |
parent | f87086e302300fdff1bd32049deb7a7f3e3de7da (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>
Diffstat (limited to 'drivers/media/video/gspca/zc3xx.c')
-rw-r--r-- | drivers/media/video/gspca/zc3xx.c | 23 |
1 files changed, 17 insertions, 6 deletions
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 |
7499 | static const __devinitdata struct usb_device_id device_table[] = { | 7499 | static 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 |