Commit ae310ee1 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

V4L/DVB (12695): gspca - vc032x: Do the LED work with the sensor hv7131r.

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0ee7e4d6
...@@ -2937,21 +2937,22 @@ static int sd_start(struct gspca_dev *gspca_dev) ...@@ -2937,21 +2937,22 @@ static int sd_start(struct gspca_dev *gspca_dev)
put_tab_to_reg(gspca_dev, MatrixT, 9, 0xb82c); put_tab_to_reg(gspca_dev, MatrixT, 9, 0xb82c);
/* set the led on 0x0892 0x0896 */ /* set the led on 0x0892 0x0896 */
if (sd->sensor == SENSOR_PO1200) { switch (sd->sensor) {
setsharpness(gspca_dev); case SENSOR_PO1200:
sethvflip(gspca_dev); case SENSOR_HV7131R:
reg_w(gspca_dev->dev, 0x89, 0x0400, 0x1415); reg_w(gspca_dev->dev, 0x89, 0x0400, 0x1415);
} else if (sd->sensor == SENSOR_MI1310_SOC) { break;
case SENSOR_MI1310_SOC:
reg_w(gspca_dev->dev, 0x89, 0x058c, 0x0000); reg_w(gspca_dev->dev, 0x89, 0x058c, 0x0000);
msleep(100); break;
sethvflip(gspca_dev); default:
setlightfreq(gspca_dev);
} else {
reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff); reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff);
msleep(100); break;
sethvflip(gspca_dev);
setlightfreq(gspca_dev);
} }
msleep(100);
setsharpness(gspca_dev);
sethvflip(gspca_dev);
setlightfreq(gspca_dev);
} }
return 0; return 0;
} }
......
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