Commit 36e756c5 authored by Erik Andr?n's avatar Erik Andr?n Committed by Mauro Carvalho Chehab

V4L/DVB (11467): gspca - m5602: Move all dump_sensor to the init function

Signed-off-by: default avatarErik Andr?n <erik.andren@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent cf811d50
...@@ -144,9 +144,6 @@ int mt9m111_probe(struct sd *sd) ...@@ -144,9 +144,6 @@ int mt9m111_probe(struct sd *sd)
sensor_settings[i] = mt9m111_ctrls[i].qctrl.default_value; sensor_settings[i] = mt9m111_ctrls[i].qctrl.default_value;
sd->sensor_priv = sensor_settings; sd->sensor_priv = sensor_settings;
if (dump_sensor)
mt9m111_dump_registers(sd);
return 0; return 0;
} }
...@@ -171,6 +168,9 @@ int mt9m111_init(struct sd *sd) ...@@ -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]); err = mt9m111_set_vflip(&sd->gspca_dev, sensor_settings[VFLIP_IDX]);
if (err < 0) if (err < 0)
return err; return err;
......
...@@ -209,9 +209,6 @@ int po1030_probe(struct sd *sd) ...@@ -209,9 +209,6 @@ int po1030_probe(struct sd *sd)
sensor_settings[i] = po1030_ctrls[i].qctrl.default_value; sensor_settings[i] = po1030_ctrls[i].qctrl.default_value;
sd->sensor_priv = sensor_settings; sd->sensor_priv = sensor_settings;
if (dump_sensor)
po1030_dump_registers(sd);
return 0; return 0;
} }
...@@ -245,6 +242,9 @@ int po1030_init(struct sd *sd) ...@@ -245,6 +242,9 @@ int po1030_init(struct sd *sd)
if (err < 0) if (err < 0)
return err; return err;
if (dump_sensor)
po1030_dump_registers(sd);
err = po1030_set_exposure(&sd->gspca_dev, err = po1030_set_exposure(&sd->gspca_dev,
sensor_settings[EXPOSURE_IDX]); sensor_settings[EXPOSURE_IDX]);
if (err < 0) if (err < 0)
......
...@@ -214,9 +214,6 @@ int s5k4aa_probe(struct sd *sd) ...@@ -214,9 +214,6 @@ int s5k4aa_probe(struct sd *sd)
sensor_settings[i] = s5k4aa_ctrls[i].qctrl.default_value; sensor_settings[i] = s5k4aa_ctrls[i].qctrl.default_value;
sd->sensor_priv = sensor_settings; sd->sensor_priv = sensor_settings;
if (dump_sensor)
s5k4aa_dump_registers(sd);
return 0; return 0;
} }
...@@ -295,6 +292,9 @@ int s5k4aa_init(struct sd *sd) ...@@ -295,6 +292,9 @@ int s5k4aa_init(struct sd *sd)
} }
} }
if (dump_sensor)
s5k4aa_dump_registers(sd);
err = s5k4aa_set_exposure(&sd->gspca_dev, err = s5k4aa_set_exposure(&sd->gspca_dev,
sensor_settings[EXPOSURE_IDX]); sensor_settings[EXPOSURE_IDX]);
if (err < 0) if (err < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment