Lines Matching defs:sensor

68 	u8 sensor;			/* Type of image sensor chip */
99 #define S_PWR_DN 0x01 /* sensor power down */
106 #define MCK_SIZE_MASK 0x1f /* sensor master clock */
107 #define SEN_CLK_EN 0x20 /* enable sensor clock */
325 /* gamma for sensor ADCM1700 */
335 /* gamma for sensor GC0307 */
340 /* gamma for sensor SP80708 */
474 /* set sensor clock */
518 {0xb1, 0x5d, 0x0a, 0x00, 0x02, 0x00, 0x00, 0x10}, /* sensor clck ?2 */
528 {0xb1, 0x5d, 0x07, 0x00, 0x02, 0x00, 0x00, 0x10}, /* sensor on */
584 {0xb1, 0x5d, 0x07, 0x00, 0x02, 0x00, 0x00, 0x10}, /* sensor on */
617 {0xb1, 0x5c, 0x01, 0x00, 0x04, 0x00, 0x00, 0x10}, /* sensor select */
885 /* the sensor registers are described in m5602/m5602_po1030.h */
886 {0xa1, 0x6e, 0x3f, 0x20, 0x00, 0x00, 0x00, 0x10}, /* sensor reset */
1236 switch (sd->sensor) {
1293 /* sensor read 'len' (1..5) bytes in gspca_dev->usb_buf */
1299 switch (sd->sensor) {
1337 /* check the ID of the hv7131 sensor */
1338 /* this sequence is needed because it activates the sensor */
1341 i2c_w1(gspca_dev, 0x02, 0); /* sensor wakeup */
1345 i2c_r(gspca_dev, 0, 5); /* read sensor id */
1397 sd->sensor = SENSOR_MI0360B;
1401 sd->sensor = SENSOR_MT9V111;
1407 gspca_dbg(gspca_dev, D_PROBE, "Unknown sensor %04x - forced to mi0360\n",
1429 sd->sensor = SENSOR_SOI768;
1469 sd->sensor = SENSOR_PO1030;
1472 pr_err("Unknown sensor %04x\n", val);
1475 /* 0c45:6142 sensor may be po2030n, gc0305 or gc0307 */
1492 sd->sensor = SENSOR_GC0307;
1508 /* sd->sensor = SENSOR_PO2030N; */
1510 pr_err("Unknown sensor ID %04x\n", val);
1522 sd->sensor = id->driver_info >> 8;
1526 if (sd->sensor == SENSOR_ADCM1700) {
1575 switch (sd->sensor) {
1599 /* Note we do not disable the sensor clock here (power saving mode),
1604 sn9c1xx = sn_tb[sd->sensor];
1641 if (sd->sensor == SENSOR_OM6802)
1652 if (sd->sensor == SENSOR_PO2030N) {
1661 if (sd->sensor != SENSOR_ADCM1700 && sd->sensor != SENSOR_OV7660 &&
1662 sd->sensor != SENSOR_PO1030 && sd->sensor != SENSOR_SOI768 &&
1663 sd->sensor != SENSOR_SP80708)
1667 if (sd->sensor == SENSOR_HV7131R || sd->sensor == SENSOR_OV7630 ||
1668 sd->sensor == SENSOR_OV7648 || sd->sensor == SENSOR_PO2030N)
1672 if (sd->sensor == SENSOR_OV7630 || sd->sensor == SENSOR_OV7648 ||
1673 sd->sensor == SENSOR_OV7660)
1685 if (sd->sensor == SENSOR_PO2030N) {
1698 switch (sd->sensor) {
1725 static const u8 doit[] = /* update sensor */
1727 static const u8 sensorgo[] = /* sensor on */
1805 switch (sd->sensor) {
1877 if (sd->sensor == SENSOR_MI0360B)
1893 if (sd->sensor == SENSOR_PO2030N) {
1919 switch (sd->sensor) {
1950 if (sd->sensor == SENSOR_PO2030N) {
1967 switch (sd->sensor) {
1972 if (sd->sensor == SENSOR_OV7630)
1992 if (sd->sensor == SENSOR_PO2030N) {
2006 switch (sd->sensor) {
2055 switch (sd->sensor) {
2074 if (sd->sensor == SENSOR_OV7660) {
2095 switch (sd->sensor) {
2205 sn9c1xx = sn_tb[sd->sensor];
2207 /* sensor clock already enabled in sd_init */
2222 switch (sd->sensor) {
2242 switch (sd->sensor) {
2262 reg01 &= ~S_PWR_DN; /* sensor power on */
2267 switch (sd->sensor) {
2286 /* initialize the sensor */
2287 i2c_w_seq(gspca_dev, sensor_init[sd->sensor]);
2294 if (sd->sensor == SENSOR_ADCM1700) {
2303 if (sd->sensor == SENSOR_ADCM1700) {
2311 switch (sd->sensor) {
2331 switch (sd->sensor) {
2366 switch (sd->sensor) {
2429 /* more sensor initialization - param1 */
2436 switch (sd->sensor) {
2449 switch (sd->sensor) {
2501 switch (sd->sensor) {
2547 reg01 |= S_PWR_DN; /* sensor power down */
2554 /* Don't disable sensor clock as that disables the button on the cam */
2587 if (sd->sensor == SENSOR_PO2030N) {
2595 switch (sd->sensor) {
2890 #define BS(bridge, sensor) \
2892 | (SENSOR_ ## sensor << 8)
2893 #define BSF(bridge, sensor, flags) \
2895 | (SENSOR_ ## sensor << 8) \