Lines Matching defs:sensor
46 * are getting "Failed to read sensor ID..." */
84 /* Determined by sensor type */
97 s8 sensor; /* Type of image sensor chip (SEN_*) */
127 really should move the sensor drivers to v4l2 sub drivers. */
616 * (0x12) to change the sensor mode, registers related to the
617 * sensor’s cropping window will be reset back to their default
620 * "wait 4096 external clock ... to make sure the sensor is
1139 * = 0 (0x00) .0...... "Master mode, sensor
2276 * always succeeds regardless of whether the sensor is present and working.
2305 * always succeeds regardless of whether the sensor is present and working.
2400 /* Up on sensor reset empty the register cache */
2531 /* This does an initial reset of an OmniVision sensor and ensures that I2C
2541 /* Reset the sensor */
2555 /* Reset the sensor */
2611 * OV511 and sensor configuration
2628 /* Detect sensor (sub)type */
2637 sd->sensor = SEN_OV2610;
2641 sd->sensor = SEN_OV2610AE;
2645 sd->sensor = SEN_OV9600;
2652 sd->sensor = SEN_OV3610;
2657 gspca_err(gspca_dev, "Error unknown sensor type: %02x%02x\n",
2661 /* This initializes the OV8110, OV8610 sensor. The OV8110 uses
2671 /* Detect sensor (sub)type */
2674 gspca_err(gspca_dev, "Error detecting sensor type\n");
2678 sd->sensor = SEN_OV8610;
2680 gspca_err(gspca_dev, "Unknown image sensor version: %d\n",
2684 /* This initializes the OV7610, OV7620, or OV76BE sensor. The OV76BE uses
2694 /* Detect sensor (sub)type */
2700 gspca_err(gspca_dev, "Error detecting sensor type\n");
2711 sd->sensor = SEN_OV7670;
2714 sd->sensor = SEN_OV7610;
2720 sd->sensor = SEN_OV7620AE;
2723 sd->sensor = SEN_OV76BE;
2745 sd->sensor = SEN_OV7640; /* FIXME */
2749 sd->sensor = SEN_OV7640; /* FIXME */
2753 sd->sensor = SEN_OV7648;
2757 sd->sensor = SEN_OV7660;
2760 gspca_err(gspca_dev, "Unknown sensor: 0x76%02x\n",
2766 sd->sensor = SEN_OV7620;
2769 gspca_err(gspca_dev, "Unknown image sensor version: %d\n",
2774 /* This initializes the OV6620, OV6630, OV6630AE, or OV6630AF sensor. */
2782 /* Detect sensor (sub)type */
2785 gspca_err(gspca_dev, "Error detecting sensor type\n");
2794 sd->sensor = SEN_OV6630;
2798 sd->sensor = SEN_OV6620;
2802 sd->sensor = SEN_OV6630;
2806 sd->sensor = SEN_OV66308AF;
2810 sd->sensor = SEN_OV6630;
2814 gspca_err(gspca_dev, "FATAL: Unknown sensor version: 0x%02x\n",
2819 /* Set sensor-specific vars */
2948 /* This initializes the OV511/OV511+ and the sensor */
3015 /* This initializes the OV518/OV518+ and the sensor */
3096 /* Set LED pin to output mode. Bit 4 must be cleared or sensor
3171 * - reg = 0: bridge a4, 1: bridge 23, 2: sensor 11 (clock)
3205 if (sd->sensor == SEN_OV7660)
3286 /* The OV519 must be more aggressive about sensor detection since
3287 * I2C write will never fail if the sensor is not present. We have
3288 * to try to initialize the sensor to detect its presence */
3289 sd->sensor = -1;
3307 gspca_err(gspca_dev, "Can't determine sensor slave IDs\n");
3311 if (sd->sensor < 0)
3338 switch (sd->sensor) {
3364 /* w9968cf needs initialisation once the sensor is known */
3369 /* initialize the sensor */
3370 switch (sd->sensor) {
3462 * Do not put any sensor-specific code in here (including I2C I/O functions)
3516 switch (sd->sensor) {
3594 * Do not put any sensor-specific code in here (including I2C I/O functions)
3655 sd->sensor == SEN_OV7620AE)
3667 switch (sd->sensor) {
3740 * Do not put any sensor-specific code in here (including I2C I/O functions)
3791 switch (sd->sensor) {
3794 if (sd->sensor == SEN_OV7640 ||
3795 sd->sensor == SEN_OV7648) {
3810 if (sd->sensor == SEN_OV7670 &&
3813 else if (sd->sensor == SEN_OV7648 &&
3831 switch (sd->sensor) {
3911 /******** Mode (VGA/QVGA) and sensor specific regs ********/
3912 switch (sd->sensor) {
3993 if (sd->sensor == SEN_OV76BE)
4115 switch (sd->sensor) {
4133 /* The different sensor ICs handle setting up of window differently.
4135 switch (sd->sensor) {
4155 if (sd->sensor == SEN_OV66308AF && qvga)
4181 switch (sd->sensor) {
4464 the sensor and bridge are still syncing, so drop it. */
4526 switch (sd->sensor) {
4615 switch (sd->sensor) {
4678 switch (sd->sensor) {
4720 if (sd->sensor == SEN_OV7660
4721 || sd->sensor == SEN_OV7670) {
4753 if (sd->sensor == SEN_OV6620 ||
4754 sd->sensor == SEN_OV6630 ||
4755 sd->sensor == SEN_OV66308AF)
4762 if (sd->sensor == SEN_OV6620 ||
4763 sd->sensor == SEN_OV6630 ||
4764 sd->sensor == SEN_OV66308AF) {
4888 if (valid_controls[sd->sensor].has_brightness)
4891 sd->sensor == SEN_OV7660 ? 6 : 255, 1,
4892 sd->sensor == SEN_OV7660 ? 3 : 127);
4893 if (valid_controls[sd->sensor].has_contrast) {
4894 if (sd->sensor == SEN_OV7660)
4900 (sd->sensor == SEN_OV6630 ||
4901 sd->sensor == SEN_OV66308AF) ? 200 : 127);
4903 if (valid_controls[sd->sensor].has_sat)
4906 sd->sensor == SEN_OV7660 ? 4 : 255, 1,
4907 sd->sensor == SEN_OV7660 ? 2 : 127);
4908 if (valid_controls[sd->sensor].has_exposure)
4911 if (valid_controls[sd->sensor].has_hvflip) {
4917 if (valid_controls[sd->sensor].has_autobright)
4920 if (valid_controls[sd->sensor].has_autogain)
4923 if (valid_controls[sd->sensor].has_freq) {
4924 if (sd->sensor == SEN_OV7670)