aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2008-07-23 06:04:39 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-26 11:54:16 -0400
commitfff4205f1d64163132609942314e94ec3ba2ed6b (patch)
tree3b1ac0696ac57c91d366d2657bdc81d21e60a720 /drivers/media/video
parent84754319e30a25626f6bf0d84efc7935ba1d0b3d (diff)
V4L/DVB (8458): gspca_sonixb remove one more no longer needed special case from the code
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/gspca/sonixb.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c
index fd91f43e0786..93d365456591 100644
--- a/drivers/media/video/gspca/sonixb.c
+++ b/drivers/media/video/gspca/sonixb.c
@@ -868,7 +868,6 @@ static void sd_start(struct gspca_dev *gspca_dev)
868 struct sd *sd = (struct sd *) gspca_dev; 868 struct sd *sd = (struct sd *) gspca_dev;
869 int mode, l = 0x1f; 869 int mode, l = 0x1f;
870 const __u8 *sn9c10x; 870 const __u8 *sn9c10x;
871 __u8 reg01, reg17;
872 __u8 reg17_19[3]; 871 __u8 reg17_19[3];
873 872
874 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv; 873 mode = gspca_dev->cam.cam_mode[(int) gspca_dev->curr_mode].priv;
@@ -922,21 +921,10 @@ static void sd_start(struct gspca_dev *gspca_dev)
922 break; 921 break;
923 } 922 }
924 923
925 /* Special case for SN9C101/2 with OV 7630 */
926 /* HDG: is this really necessary we overwrite the values immediately
927 afterwards with the ones from the template ?? */
928 if (sd->sensor == SENSOR_OV7630 && sd->fr_h_sz == 12) {
929 reg01 = 0x06;
930 reg17 = 0x29;
931 } else {
932 reg01 = sn9c10x[0];
933 reg17 = sn9c10x[0x17 - 1];
934 }
935
936 /* reg 0x01 bit 2 video transfert on */ 924 /* reg 0x01 bit 2 video transfert on */
937 reg_w(gspca_dev, 0x01, &reg01, 1); 925 reg_w(gspca_dev, 0x01, &sn9c10x[0x01 - 1], 1);
938 /* reg 0x17 SensorClk enable inv Clk 0x60 */ 926 /* reg 0x17 SensorClk enable inv Clk 0x60 */
939 reg_w(gspca_dev, 0x17, &reg17, 1); 927 reg_w(gspca_dev, 0x17, &sn9c10x[0x17 - 1], 1);
940 /* Set the registers from the template */ 928 /* Set the registers from the template */
941 reg_w_big(gspca_dev, 0x01, sn9c10x, l); 929 reg_w_big(gspca_dev, 0x01, sn9c10x, l);
942 switch (sd->sensor) { 930 switch (sd->sensor) {