summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca
diff options
context:
space:
mode:
authorhans@localhost.localdomain <hans@localhost.localdomain>2008-07-23 12:04:39 +0200
committerhans@localhost.localdomain <hans@localhost.localdomain>2008-07-23 12:04:39 +0200
commit6b9a288b7689b76db669d5fb192a5190fcafbcc8 (patch)
treeb796a171b48d6a8217620dac24258b9e1bae1ebc /linux/drivers/media/video/gspca
parented2a63fee50e44cb3232a0d1b3a84c13ca7dfb96 (diff)
downloadmediapointer-dvb-s2-6b9a288b7689b76db669d5fb192a5190fcafbcc8.tar.gz
mediapointer-dvb-s2-6b9a288b7689b76db669d5fb192a5190fcafbcc8.tar.bz2
gspca_sonixb remove one more no longer needed special case from the code
From: Hans de Goede <j.w.r.degoede@hhs.nl> gspca_sonixb remove one more no longer needed special case from the code Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Diffstat (limited to 'linux/drivers/media/video/gspca')
-rw-r--r--linux/drivers/media/video/gspca/sonixb.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/linux/drivers/media/video/gspca/sonixb.c b/linux/drivers/media/video/gspca/sonixb.c
index aaf93e2d6..74b8f0409 100644
--- a/linux/drivers/media/video/gspca/sonixb.c
+++ b/linux/drivers/media/video/gspca/sonixb.c
@@ -904,7 +904,6 @@ static void sd_start(struct gspca_dev *gspca_dev)
struct sd *sd = (struct sd *) gspca_dev;
int mode, l = 0x1f;
const __u8 *sn9c10x;
- __u8 reg01, reg17;
__u8 reg17_19[3];
mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
@@ -958,21 +957,10 @@ static void sd_start(struct gspca_dev *gspca_dev)
break;
}
- /* Special case for SN9C101/2 with OV 7630 */
- /* HDG: is this really necessary we overwrite the values immediately
- afterwards with the ones from the template ?? */
- if (sd->sensor == SENSOR_OV7630 && sd->fr_h_sz == 12) {
- reg01 = 0x06;
- reg17 = 0x29;
- } else {
- reg01 = sn9c10x[0];
- reg17 = sn9c10x[0x17 - 1];
- }
-
/* reg 0x01 bit 2 video transfert on */
- reg_w(gspca_dev, 0x01, &reg01, 1);
+ reg_w(gspca_dev, 0x01, &sn9c10x[0x01 - 1], 1);
/* reg 0x17 SensorClk enable inv Clk 0x60 */
- reg_w(gspca_dev, 0x17, &reg17, 1);
+ reg_w(gspca_dev, 0x17, &sn9c10x[0x17 - 1], 1);
/* Set the registers from the template */
reg_w_big(gspca_dev, 0x01, sn9c10x, l);
switch (sd->sensor) {