summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2009-01-09 17:35:00 +0100
committerErik Andr?n <erik.andren@gmail.com>2009-01-09 17:35:00 +0100
commit2c14a41e11fbda8426340a33e84b16aaad6bb892 (patch)
treeeb963f5fbb9961ed532b9c18ae20dae996944bb1 /linux
parentd6a285a1117236b4293bc9a70baf0c967aabc54e (diff)
downloadmediapointer-dvb-s2-2c14a41e11fbda8426340a33e84b16aaad6bb892.tar.gz
mediapointer-dvb-s2-2c14a41e11fbda8426340a33e84b16aaad6bb892.tar.bz2
gspca - m5602: Move all dump_sensor to the init function
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Diffstat (limited to 'linux')
-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)