Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181440
b: refs/heads/master
c: d754a6c
h: refs/heads/master
v: v3
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent d79d058 commit e591b16
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 658604ec9caa9c8a998e296f689bd85ca1f95d6a
refs/heads/master: d754a6ca9af4ef3eedf9768446689731af09664a
17 changes: 15 additions & 2 deletions trunk/drivers/media/video/gspca/zc3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -6672,8 +6672,21 @@ static int sd_config(struct gspca_dev *gspca_dev,
}
break;
case 0:
PDEBUG(D_PROBE, "Find Sensor HV7131B");
sd->sensor = SENSOR_HV7131B;
/* check the sensor type */
sensor = i2c_read(gspca_dev, 0x00);
PDEBUG(D_PROBE, "Sensor hv7131 type %d", sensor);
switch (sensor) {
case 0: /* hv7131b */
case 1: /* hv7131e */
PDEBUG(D_PROBE, "Find Sensor HV7131B");
sd->sensor = SENSOR_HV7131B;
break;
default:
/* case 2: * hv7131r */
PDEBUG(D_PROBE, "Find Sensor HV7131R(c)");
sd->sensor = SENSOR_HV7131C;
break;
}
break;
case 0x02:
PDEBUG(D_PROBE, "Sensor TAS5130C");
Expand Down

0 comments on commit e591b16

Please sign in to comment.