aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-09 13:35:00 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 18:20:27 -0300
commit36e756c5cc024174fec48ba21f1011aed5707e25 (patch)
tree986544efbbfc5c0485abede2dbe597713d2e351f
parentcf811d506a3ed5721e3f22c77309aff489ce54c7 (diff)
V4L/DVB (11467): gspca - m5602: Move all dump_sensor to the init function
Signed-off-by: Erik Andr?n <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/m5602/m5602_mt9m111.c6
-rw-r--r--drivers/media/video/gspca/m5602/m5602_po1030.c6
-rw-r--r--drivers/media/video/gspca/m5602/m5602_s5k4aa.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_mt9m111.c b/drivers/media/video/gspca/m5602/m5602_mt9m111.c
index 8017782efee..8036619e799 100644
--- a/drivers/media/video/gspca/m5602/m5602_mt9m111.c
+++ b/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/drivers/media/video/gspca/m5602/m5602_po1030.c b/drivers/media/video/gspca/m5602/m5602_po1030.c
index 79dcf9bfdd5..3ecb53c701a 100644
--- a/drivers/media/video/gspca/m5602/m5602_po1030.c
+++ b/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/drivers/media/video/gspca/m5602/m5602_s5k4aa.c b/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
index 1ec5ac08d4f..41f6956e3af 100644
--- a/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
+++ b/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
@@ -214,9 +214,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;
}
@@ -295,6 +292,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)