aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-07 06:00:18 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:30 -0400
commitef6bc5aec2d8bd53dcc851a5cd2fc8e918db239b (patch)
tree7edad02db38d5dd77b5e6bc7e236452f475563c0
parent5658ae9007490c18853fbf112f1b3516f5949e62 (diff)
V4L/DVB (10343): gspca - zc3xx / zc0301: Handle the 0ac8:303b instead of zc0301.
This webcam is generic and some sensors are not treated by the driver zc0301. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/zc3xx.c2
-rw-r--r--drivers/media/video/zc0301/zc0301_sensor.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index e0dbbc2b999a..2482f9163adb 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -7564,9 +7564,7 @@ static const __devinitdata struct usb_device_id device_table[] = {
7564 {USB_DEVICE(0x0ac8, 0x0301), .driver_info = SENSOR_PAS106}, 7564 {USB_DEVICE(0x0ac8, 0x0301), .driver_info = SENSOR_PAS106},
7565 {USB_DEVICE(0x0ac8, 0x0302)}, 7565 {USB_DEVICE(0x0ac8, 0x0302)},
7566 {USB_DEVICE(0x0ac8, 0x301b)}, 7566 {USB_DEVICE(0x0ac8, 0x301b)},
7567#if !defined CONFIG_USB_ZC0301 && !defined CONFIG_USB_ZC0301_MODULE
7568 {USB_DEVICE(0x0ac8, 0x303b)}, 7567 {USB_DEVICE(0x0ac8, 0x303b)},
7569#endif
7570 {USB_DEVICE(0x0ac8, 0x305b), .driver_info = SENSOR_TAS5130C_VF0250}, 7568 {USB_DEVICE(0x0ac8, 0x305b), .driver_info = SENSOR_TAS5130C_VF0250},
7571 {USB_DEVICE(0x0ac8, 0x307b)}, 7569 {USB_DEVICE(0x0ac8, 0x307b)},
7572 {USB_DEVICE(0x10fd, 0x0128)}, 7570 {USB_DEVICE(0x10fd, 0x0128)},
diff --git a/drivers/media/video/zc0301/zc0301_sensor.h b/drivers/media/video/zc0301/zc0301_sensor.h
index b0cd49c438a3..3a408de91b9c 100644
--- a/drivers/media/video/zc0301/zc0301_sensor.h
+++ b/drivers/media/video/zc0301/zc0301_sensor.h
@@ -58,12 +58,20 @@ zc0301_attach_sensor(struct zc0301_device* cam, struct zc0301_sensor* sensor);
58 .idProduct = (prod), \ 58 .idProduct = (prod), \
59 .bInterfaceClass = (intclass) 59 .bInterfaceClass = (intclass)
60 60
61#if !defined CONFIG_USB_GSPCA && !defined CONFIG_USB_GSPCA_MODULE
61#define ZC0301_ID_TABLE \ 62#define ZC0301_ID_TABLE \
62static const struct usb_device_id zc0301_id_table[] = { \ 63static const struct usb_device_id zc0301_id_table[] = { \
63 { ZC0301_USB_DEVICE(0x046d, 0x08ae, 0xff), }, /* PAS202 */ \ 64 { ZC0301_USB_DEVICE(0x046d, 0x08ae, 0xff), }, /* PAS202 */ \
64 { ZC0301_USB_DEVICE(0x0ac8, 0x303b, 0xff), }, /* PB-0330 */ \ 65 { ZC0301_USB_DEVICE(0x0ac8, 0x303b, 0xff), }, /* PB-0330 */ \
65 { } \ 66 { } \
66}; 67};
68#else
69#define ZC0301_ID_TABLE \
70static const struct usb_device_id zc0301_id_table[] = { \
71 { ZC0301_USB_DEVICE(0x046d, 0x08ae, 0xff), }, /* PAS202 */ \
72 { } \
73};
74#endif
67 75
68/*****************************************************************************/ 76/*****************************************************************************/
69 77