All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre MORVAN <ryarnyah@gmail.com>
To: Hans Verkuil <hverkuil@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Pierre MORVAN <ryarnyah@gmail.com>
Subject: [PATCH v3] media: gspca: sonixj: Add illuminator control to the webcam 06f8:3008
Date: Mon, 30 Nov 2026 23:26:47 +0100	[thread overview]
Message-ID: <20261130222706.28783-1-ryarnyah@gmail.com> (raw)

Add hercules deluxe optical glass illuminator support.

Signed-off-by: Pierre MORVAN <ryarnyah@gmail.com>
---
 drivers/media/usb/gspca/sonixj.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/media/usb/gspca/sonixj.c b/drivers/media/usb/gspca/sonixj.c
index 2e1bd2df8304..83dd99114ab8 100644
--- a/drivers/media/usb/gspca/sonixj.c
+++ b/drivers/media/usb/gspca/sonixj.c
@@ -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)}, */
-- 
2.53.0


                 reply	other threads:[~2026-11-30 22:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130222706.28783-1-ryarnyah@gmail.com \
    --to=ryarnyah@gmail.com \
    --cc=hverkuil@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.