Skip to contentSkip to conversation

media: gspca: sonixj: Add illuminator control to the webcam 06f8:3008

PATCH New Pierre MORVAN 1 participant 1 message Nov 30

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 media: gspca: sonixj: Add illuminator control to the webcam 06f8:3008

Add hercules deluxe optical glass illuminator support.

---
 drivers/media/usb/gspca/sonixj.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/usb/gspca/sonixj.c +2 -1
index 2e1bd2df8304..83dd99114ab8 100644
@@ -2057,6 +2057,7 @@ static void setillum(struct gspca_dev *gspca_dev)
 		reg_w1(gspca_dev, 0x02,				/* gpio */
 			sd->illum->val ? 0x64 : 0x60);
 		break;
+	case SENSOR_OV7660:
 	case SENSOR_MT9V111:
 		reg_w1(gspca_dev, 0x02,
 			sd->illum->val ? 0x77 : 0x74);
@@ -2903,7 +2904,7 @@ static const struct usb_device_id device_table[] = {
 	{USB_DEVICE(0x0471, 0x0328), BS(SN9C105, MI0360)},
 	{USB_DEVICE(0x0471, 0x0330), BS(SN9C105, MI0360)},
 	{USB_DEVICE(0x06f8, 0x3004), BS(SN9C105, OV7660)},
-	{USB_DEVICE(0x06f8, 0x3008), BS(SN9C105, OV7660)},
+	{USB_DEVICE(0x06f8, 0x3008), BSF(SN9C105, OV7660, F_ILLUM)},
 /*	{USB_DEVICE(0x0c45, 0x603a), BS(SN9C102P, OV7648)}, */
 	{USB_DEVICE(0x0c45, 0x6040), BS(SN9C102P, HV7131R)},
 /*	{USB_DEVICE(0x0c45, 0x607a), BS(SN9C102P, OV7648)}, */
Signature · 1 line
2.53.0