diff options
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/nw80x.c | 1 | ||||
-rw-r--r-- | drivers/media/video/gspca/ov519.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/ov534_9.c | 7 | ||||
-rw-r--r-- | drivers/media/video/gspca/se401.c | 1 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca1528.c | 4 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca501.c | 5 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca505.c | 6 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca561.c | 1 | ||||
-rw-r--r-- | drivers/media/video/gspca/stk014.c | 1 | ||||
-rw-r--r-- | drivers/media/video/gspca/sunplus.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/tv8532.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/xirlink_cit.c | 2 |
14 files changed, 4 insertions, 34 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index b4fd548ada76..7bb23a91cb05 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -930,6 +930,7 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev) | |||
930 | goto out; | 930 | goto out; |
931 | } | 931 | } |
932 | gspca_dev->streaming = 1; | 932 | gspca_dev->streaming = 1; |
933 | v4l2_ctrl_handler_setup(gspca_dev->vdev.ctrl_handler); | ||
933 | 934 | ||
934 | /* some bulk transfers are started by the subdriver */ | 935 | /* some bulk transfers are started by the subdriver */ |
935 | if (gspca_dev->cam.bulk && gspca_dev->cam.bulk_nurbs == 0) | 936 | if (gspca_dev->cam.bulk && gspca_dev->cam.bulk_nurbs == 0) |
@@ -2428,7 +2429,6 @@ int gspca_resume(struct usb_interface *intf) | |||
2428 | */ | 2429 | */ |
2429 | streaming = gspca_dev->streaming; | 2430 | streaming = gspca_dev->streaming; |
2430 | gspca_dev->streaming = 0; | 2431 | gspca_dev->streaming = 0; |
2431 | v4l2_ctrl_handler_setup(gspca_dev->vdev.ctrl_handler); | ||
2432 | if (streaming) | 2432 | if (streaming) |
2433 | ret = gspca_init_transfer(gspca_dev); | 2433 | ret = gspca_init_transfer(gspca_dev); |
2434 | mutex_unlock(&gspca_dev->usb_lock); | 2434 | mutex_unlock(&gspca_dev->usb_lock); |
diff --git a/drivers/media/video/gspca/nw80x.c b/drivers/media/video/gspca/nw80x.c index 74a05bab9f60..b8ab612243de 100644 --- a/drivers/media/video/gspca/nw80x.c +++ b/drivers/media/video/gspca/nw80x.c | |||
@@ -1878,7 +1878,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
1878 | break; | 1878 | break; |
1879 | } | 1879 | } |
1880 | 1880 | ||
1881 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
1882 | sd->exp_too_high_cnt = 0; | 1881 | sd->exp_too_high_cnt = 0; |
1883 | sd->exp_too_low_cnt = 0; | 1882 | sd->exp_too_low_cnt = 0; |
1884 | return gspca_dev->usb_err; | 1883 | return gspca_dev->usb_err; |
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index 35fa141945c0..3ae5e35dce40 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c | |||
@@ -4209,8 +4209,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
4209 | 4209 | ||
4210 | set_ov_sensor_window(sd); | 4210 | set_ov_sensor_window(sd); |
4211 | 4211 | ||
4212 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
4213 | |||
4214 | /* Force clear snapshot state in case the snapshot button was | 4212 | /* Force clear snapshot state in case the snapshot button was |
4215 | pressed while we weren't streaming */ | 4213 | pressed while we weren't streaming */ |
4216 | sd->snapshot_needs_reset = 1; | 4214 | sd->snapshot_needs_reset = 1; |
diff --git a/drivers/media/video/gspca/ov534_9.c b/drivers/media/video/gspca/ov534_9.c index e934393cd806..06274871b783 100644 --- a/drivers/media/video/gspca/ov534_9.c +++ b/drivers/media/video/gspca/ov534_9.c | |||
@@ -1235,10 +1235,9 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
1235 | 1235 | ||
1236 | if (sd->sensor == SENSOR_OV971x) | 1236 | if (sd->sensor == SENSOR_OV971x) |
1237 | return gspca_dev->usb_err; | 1237 | return gspca_dev->usb_err; |
1238 | else if (sd->sensor == SENSOR_OV562x) { | 1238 | if (sd->sensor == SENSOR_OV562x) |
1239 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
1240 | return gspca_dev->usb_err; | 1239 | return gspca_dev->usb_err; |
1241 | } | 1240 | |
1242 | switch (gspca_dev->curr_mode) { | 1241 | switch (gspca_dev->curr_mode) { |
1243 | case QVGA_MODE: /* 320x240 */ | 1242 | case QVGA_MODE: /* 320x240 */ |
1244 | sccb_w_array(gspca_dev, ov965x_start_1_vga, | 1243 | sccb_w_array(gspca_dev, ov965x_start_1_vga, |
@@ -1283,8 +1282,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
1283 | break; | 1282 | break; |
1284 | } | 1283 | } |
1285 | 1284 | ||
1286 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
1287 | |||
1288 | reg_w(gspca_dev, 0xe0, 0x00); | 1285 | reg_w(gspca_dev, 0xe0, 0x00); |
1289 | reg_w(gspca_dev, 0xe0, 0x00); | 1286 | reg_w(gspca_dev, 0xe0, 0x00); |
1290 | set_led(gspca_dev, 1); | 1287 | set_led(gspca_dev, 1); |
diff --git a/drivers/media/video/gspca/se401.c b/drivers/media/video/gspca/se401.c index 17e7f89a1122..0b019ad72fbf 100644 --- a/drivers/media/video/gspca/se401.c +++ b/drivers/media/video/gspca/se401.c | |||
@@ -373,7 +373,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
373 | } | 373 | } |
374 | se401_set_feature(gspca_dev, SE401_OPERATINGMODE, mode); | 374 | se401_set_feature(gspca_dev, SE401_OPERATINGMODE, mode); |
375 | 375 | ||
376 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
377 | se401_set_feature(gspca_dev, HV7131_REG_ARLV, sd->resetlevel); | 376 | se401_set_feature(gspca_dev, HV7131_REG_ARLV, sd->resetlevel); |
378 | 377 | ||
379 | sd->packet_read = 0; | 378 | sd->packet_read = 0; |
diff --git a/drivers/media/video/gspca/spca1528.c b/drivers/media/video/gspca/spca1528.c index 315a5bf2034c..fa2075a7e486 100644 --- a/drivers/media/video/gspca/spca1528.c +++ b/drivers/media/video/gspca/spca1528.c | |||
@@ -261,10 +261,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
261 | /* the JPEG quality shall be 85% */ | 261 | /* the JPEG quality shall be 85% */ |
262 | jpeg_set_qual(sd->jpeg_hdr, 85); | 262 | jpeg_set_qual(sd->jpeg_hdr, 85); |
263 | 263 | ||
264 | /* set the controls */ | ||
265 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
266 | |||
267 | msleep(5); | ||
268 | reg_r(gspca_dev, 0x00, 0x2520, 1); | 264 | reg_r(gspca_dev, 0x00, 0x2520, 1); |
269 | msleep(8); | 265 | msleep(8); |
270 | 266 | ||
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 8e2136a2b923..6d4debdd5b5c 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -1910,11 +1910,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
1910 | } | 1910 | } |
1911 | reg_write(dev, SPCA501_REG_CTLRL, 0x01, 0x02); | 1911 | reg_write(dev, SPCA501_REG_CTLRL, 0x01, 0x02); |
1912 | 1912 | ||
1913 | /* HDG atleast the Intel CreateAndShare needs to have one of its | ||
1914 | * brightness / contrast / color set otherwise it assumes what seems | ||
1915 | * max contrast. Note that strange enough setting any of these is | ||
1916 | * enough to fix the max contrast problem, to be sure we set all 3 */ | ||
1917 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
1918 | return 0; | 1913 | return 0; |
1919 | } | 1914 | } |
1920 | 1915 | ||
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c index a1def079a0c9..fea17a8217f3 100644 --- a/drivers/media/video/gspca/spca505.c +++ b/drivers/media/video/gspca/spca505.c | |||
@@ -679,13 +679,9 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
679 | reg_write(dev, SPCA50X_REG_COMPRESS, 0x06, mode_tb[mode][1]); | 679 | reg_write(dev, SPCA50X_REG_COMPRESS, 0x06, mode_tb[mode][1]); |
680 | reg_write(dev, SPCA50X_REG_COMPRESS, 0x07, mode_tb[mode][2]); | 680 | reg_write(dev, SPCA50X_REG_COMPRESS, 0x07, mode_tb[mode][2]); |
681 | 681 | ||
682 | ret = reg_write(dev, SPCA50X_REG_USB, | 682 | return reg_write(dev, SPCA50X_REG_USB, |
683 | SPCA50X_USB_CTRL, | 683 | SPCA50X_USB_CTRL, |
684 | SPCA50X_CUSB_ENABLE); | 684 | SPCA50X_CUSB_ENABLE); |
685 | |||
686 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
687 | |||
688 | return ret; | ||
689 | } | 685 | } |
690 | 686 | ||
691 | static void sd_stopN(struct gspca_dev *gspca_dev) | 687 | static void sd_stopN(struct gspca_dev *gspca_dev) |
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index 168be551576e..00f4de7c6e84 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -592,7 +592,6 @@ static int sd_start_12a(struct gspca_dev *gspca_dev) | |||
592 | memcpy(gspca_dev->usb_buf, Reg8391, 8); | 592 | memcpy(gspca_dev->usb_buf, Reg8391, 8); |
593 | reg_w_buf(gspca_dev, 0x8391, 8); | 593 | reg_w_buf(gspca_dev, 0x8391, 8); |
594 | reg_w_buf(gspca_dev, 0x8390, 8); | 594 | reg_w_buf(gspca_dev, 0x8390, 8); |
595 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
596 | 595 | ||
597 | /* Led ON (bit 3 -> 0 */ | 596 | /* Led ON (bit 3 -> 0 */ |
598 | reg_w_val(gspca_dev->dev, 0x8114, 0x00); | 597 | reg_w_val(gspca_dev->dev, 0x8114, 0x00); |
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c index 247365c2a519..18674570f13a 100644 --- a/drivers/media/video/gspca/stk014.c +++ b/drivers/media/video/gspca/stk014.c | |||
@@ -287,7 +287,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
287 | reg_w(gspca_dev, 0x0640, 0); | 287 | reg_w(gspca_dev, 0x0640, 0); |
288 | reg_w(gspca_dev, 0x0650, 0); | 288 | reg_w(gspca_dev, 0x0650, 0); |
289 | reg_w(gspca_dev, 0x0660, 0); | 289 | reg_w(gspca_dev, 0x0660, 0); |
290 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
291 | set_par(gspca_dev, 0x09800000); /* Red ? */ | 290 | set_par(gspca_dev, 0x09800000); /* Red ? */ |
292 | set_par(gspca_dev, 0x0a800000); /* Green ? */ | 291 | set_par(gspca_dev, 0x0a800000); /* Green ? */ |
293 | set_par(gspca_dev, 0x0b800000); /* Blue ? */ | 292 | set_par(gspca_dev, 0x0b800000); /* Blue ? */ |
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index 530652dcbfb2..bd3d5a615384 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -558,8 +558,6 @@ static void init_ctl_reg(struct gspca_dev *gspca_dev) | |||
558 | struct sd *sd = (struct sd *) gspca_dev; | 558 | struct sd *sd = (struct sd *) gspca_dev; |
559 | int pollreg = 1; | 559 | int pollreg = 1; |
560 | 560 | ||
561 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
562 | |||
563 | switch (sd->bridge) { | 561 | switch (sd->bridge) { |
564 | case BRIDGE_SPCA504: | 562 | case BRIDGE_SPCA504: |
565 | case BRIDGE_SPCA504C: | 563 | case BRIDGE_SPCA504C: |
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index 8baa03f7c604..ef39981bfb69 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -242,8 +242,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
242 | 242 | ||
243 | tv_8532_setReg(gspca_dev); | 243 | tv_8532_setReg(gspca_dev); |
244 | 244 | ||
245 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
246 | |||
247 | /************************************************/ | 245 | /************************************************/ |
248 | reg_w1(gspca_dev, R31_UPD, 0x01); /* update registers */ | 246 | reg_w1(gspca_dev, R31_UPD, 0x01); /* update registers */ |
249 | msleep(200); | 247 | msleep(200); |
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index ee1a1c558e48..54a6cf92b745 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -3543,7 +3543,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
3543 | /* case SENSOR_POxxxx: */ | 3543 | /* case SENSOR_POxxxx: */ |
3544 | usb_exchange(gspca_dev, poxxxx_init_common); | 3544 | usb_exchange(gspca_dev, poxxxx_init_common); |
3545 | setgamma(gspca_dev); | 3545 | setgamma(gspca_dev); |
3546 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
3547 | usb_exchange(gspca_dev, poxxxx_init_start_3); | 3546 | usb_exchange(gspca_dev, poxxxx_init_start_3); |
3548 | if (mode) | 3547 | if (mode) |
3549 | init = poxxxx_initQVGA; | 3548 | init = poxxxx_initQVGA; |
@@ -3576,7 +3575,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
3576 | break; | 3575 | break; |
3577 | } | 3576 | } |
3578 | msleep(100); | 3577 | msleep(100); |
3579 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
3580 | } | 3578 | } |
3581 | switch (sd->sensor) { | 3579 | switch (sd->sensor) { |
3582 | case SENSOR_OV7670: | 3580 | case SENSOR_OV7670: |
diff --git a/drivers/media/video/gspca/xirlink_cit.c b/drivers/media/video/gspca/xirlink_cit.c index 4fe2ab1c17d5..e074718658d8 100644 --- a/drivers/media/video/gspca/xirlink_cit.c +++ b/drivers/media/video/gspca/xirlink_cit.c | |||
@@ -2620,8 +2620,6 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
2620 | break; | 2620 | break; |
2621 | } | 2621 | } |
2622 | 2622 | ||
2623 | v4l2_ctrl_handler_setup(&gspca_dev->ctrl_handler); | ||
2624 | |||
2625 | /* Program max isoc packet size */ | 2623 | /* Program max isoc packet size */ |
2626 | cit_write_reg(gspca_dev, packet_size >> 8, 0x0106); | 2624 | cit_write_reg(gspca_dev, packet_size >> 8, 0x0106); |
2627 | cit_write_reg(gspca_dev, packet_size & 0xff, 0x0107); | 2625 | cit_write_reg(gspca_dev, packet_size & 0xff, 0x0107); |