summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c6
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_po1030.c6
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c
index 8017782ef..8036619e7 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_mt9m111.c
@@ -144,9 +144,6 @@ sensor_found:
sensor_settings[i] = mt9m111_ctrls[i].qctrl.default_value;
sd->sensor_priv = sensor_settings;
- if (dump_sensor)
- mt9m111_dump_registers(sd);
-
return 0;
}
@@ -171,6 +168,9 @@ int mt9m111_init(struct sd *sd)
}
}
+ if (dump_sensor)
+ mt9m111_dump_registers(sd);
+
err = mt9m111_set_vflip(&sd->gspca_dev, sensor_settings[VFLIP_IDX]);
if (err < 0)
return err;
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_po1030.c b/linux/drivers/media/video/gspca/m5602/m5602_po1030.c
index 79dcf9bfd..3ecb53c70 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_po1030.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_po1030.c
@@ -209,9 +209,6 @@ sensor_found:
sensor_settings[i] = po1030_ctrls[i].qctrl.default_value;
sd->sensor_priv = sensor_settings;
- if (dump_sensor)
- po1030_dump_registers(sd);
-
return 0;
}
@@ -245,6 +242,9 @@ int po1030_init(struct sd *sd)
if (err < 0)
return err;
+ if (dump_sensor)
+ po1030_dump_registers(sd);
+
err = po1030_set_exposure(&sd->gspca_dev,
sensor_settings[EXPOSURE_IDX]);
if (err < 0)
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
index 48658a1d9..7b1d0602e 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
@@ -216,9 +216,6 @@ sensor_found:
sensor_settings[i] = s5k4aa_ctrls[i].qctrl.default_value;
sd->sensor_priv = sensor_settings;
- if (dump_sensor)
- s5k4aa_dump_registers(sd);
-
return 0;
}
@@ -297,6 +294,9 @@ int s5k4aa_init(struct sd *sd)
}
}
+ if (dump_sensor)
+ s5k4aa_dump_registers(sd);
+
err = s5k4aa_set_exposure(&sd->gspca_dev,
sensor_settings[EXPOSURE_IDX]);
if (err < 0)