Commit 5c95606b authored by Jean-François Moine's avatar Jean-François Moine Committed by Mauro Carvalho Chehab

[media] gspca - sonixj: Set both pins for infrared of mt9v111 webcams

This avoids to define the webcam model.
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 336d23ef
...@@ -29,8 +29,6 @@ MODULE_AUTHOR("Jean-François Moine <http://moinejf.free.fr>"); ...@@ -29,8 +29,6 @@ MODULE_AUTHOR("Jean-François Moine <http://moinejf.free.fr>");
MODULE_DESCRIPTION("GSPCA/SONIX JPEG USB Camera Driver"); MODULE_DESCRIPTION("GSPCA/SONIX JPEG USB Camera Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
static int starcam;
/* controls */ /* controls */
enum e_ctrl { enum e_ctrl {
BRIGHTNESS, BRIGHTNESS,
...@@ -2192,14 +2190,11 @@ static void setillum(struct gspca_dev *gspca_dev) ...@@ -2192,14 +2190,11 @@ static void setillum(struct gspca_dev *gspca_dev)
sd->ctrls[ILLUM].val ? 0x64 : 0x60); sd->ctrls[ILLUM].val ? 0x64 : 0x60);
break; break;
case SENSOR_MT9V111: case SENSOR_MT9V111:
if (starcam) reg_w1(gspca_dev, 0x02,
reg_w1(gspca_dev, 0x02, sd->ctrls[ILLUM].val ? 0x77 : 0x74);
sd->ctrls[ILLUM].val ? /* should have been: */
0x55 : 0x54); /* 370i */ /* 0x55 : 0x54); * 370i */
else /* 0x66 : 0x64); * Clip */
reg_w1(gspca_dev, 0x02,
sd->ctrls[ILLUM].val ?
0x66 : 0x64); /* Clip */
break; break;
} }
} }
...@@ -3114,7 +3109,3 @@ static void __exit sd_mod_exit(void) ...@@ -3114,7 +3109,3 @@ static void __exit sd_mod_exit(void)
module_init(sd_mod_init); module_init(sd_mod_init);
module_exit(sd_mod_exit); module_exit(sd_mod_exit);
module_param(starcam, int, 0644);
MODULE_PARM_DESC(starcam,
"StarCam model. 0: Clip, 1: 370i");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment