diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-09-01 19:02:22 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2009-09-01 19:02:22 +0200 |
commit | 62a6104ddcd7cf381c4f6802b5c029b096d95355 (patch) | |
tree | cdba334e013fc9fc3ce649f344f978c2ed9e2444 /linux/drivers/media/video/gspca/vc032x.c | |
parent | d7afea829cb355469ef35d43604dea1be4358210 (diff) | |
download | mediapointer-dvb-s2-62a6104ddcd7cf381c4f6802b5c029b096d95355.tar.gz mediapointer-dvb-s2-62a6104ddcd7cf381c4f6802b5c029b096d95355.tar.bz2 |
gspca - vc032x: Do the LED work with the sensor hv7131r.
From: Jean-Francois Moine <moinejf@free.fr>
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | linux/drivers/media/video/gspca/vc032x.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/linux/drivers/media/video/gspca/vc032x.c b/linux/drivers/media/video/gspca/vc032x.c index 89e15d150..9464454f1 100644 --- a/linux/drivers/media/video/gspca/vc032x.c +++ b/linux/drivers/media/video/gspca/vc032x.c @@ -3410,21 +3410,22 @@ static int sd_start(struct gspca_dev *gspca_dev) put_tab_to_reg(gspca_dev, MatrixT, 9, 0xb82c); /* set the led on 0x0892 0x0896 */ - if (sd->sensor == SENSOR_PO1200) { - setsharpness(gspca_dev); - sethvflip(gspca_dev); + switch (sd->sensor) { + case SENSOR_PO1200: + case SENSOR_HV7131R: 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); - msleep(100); - sethvflip(gspca_dev); - setlightfreq(gspca_dev); - } else { + break; + default: reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff); - msleep(100); - sethvflip(gspca_dev); - setlightfreq(gspca_dev); + break; } + msleep(100); + setsharpness(gspca_dev); + sethvflip(gspca_dev); + setlightfreq(gspca_dev); } return 0; } |