The patch number 9986 was added via Jean-Francois Moine <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [email protected]

------

From: Jean-Francois Moine  <[email protected]>
gspca - spca561: Don't get the control values from the webcam.


Priority: normal

Signed-off-by: Jean-Francois Moine <[email protected]>


---

 linux/drivers/media/video/gspca/spca561.c |   38 ----------------------
 1 file changed, 38 deletions(-)

diff -r 4a7af543bdf2 -r d547b93cb101 linux/drivers/media/video/gspca/spca561.c
--- a/linux/drivers/media/video/gspca/spca561.c Wed Dec 17 18:34:53 2008 +0100
+++ b/linux/drivers/media/video/gspca/spca561.c Wed Dec 17 18:43:05 2008 +0100
@@ -900,42 +900,6 @@ static void setbrightness(struct gspca_d
        reg_w_val(gspca_dev->dev, 0x8614, value);
 }
 
-static void getbrightness(struct gspca_dev *gspca_dev)
-{
-       struct sd *sd = (struct sd *) gspca_dev;
-       __u16 tot;
-
-       tot = 0;
-       reg_r(gspca_dev, 0x8611, 1);
-       tot += gspca_dev->usb_buf[0];
-       reg_r(gspca_dev, 0x8612, 1);
-       tot += gspca_dev->usb_buf[0];
-       reg_r(gspca_dev, 0x8613, 1);
-       tot += gspca_dev->usb_buf[0];
-       reg_r(gspca_dev, 0x8614, 1);
-       tot += gspca_dev->usb_buf[0];
-       sd->brightness = tot >> 2;
-}
-
-/* rev72a only */
-static void getcontrast(struct gspca_dev *gspca_dev)
-{
-       struct sd *sd = (struct sd *) gspca_dev;
-       __u16 tot;
-
-       tot = 0;
-       reg_r(gspca_dev, 0x8651, 1);
-       tot += gspca_dev->usb_buf[0];
-       reg_r(gspca_dev, 0x8652, 1);
-       tot += gspca_dev->usb_buf[0];
-       reg_r(gspca_dev, 0x8653, 1);
-       tot += gspca_dev->usb_buf[0];
-       reg_r(gspca_dev, 0x8654, 1);
-       tot += gspca_dev->usb_buf[0];
-       sd->contrast = tot << 6;
-       PDEBUG(D_CONF, "get contrast %d", sd->contrast);
-}
-
 /* rev 72a only */
 static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val)
 {
@@ -951,7 +915,6 @@ static int sd_getbrightness(struct gspca
 {
        struct sd *sd = (struct sd *) gspca_dev;
 
-       getbrightness(gspca_dev);
        *val = sd->brightness;
        return 0;
 }
@@ -971,7 +934,6 @@ static int sd_getcontrast(struct gspca_d
 {
        struct sd *sd = (struct sd *) gspca_dev;
 
-       getcontrast(gspca_dev);
        *val = sd->contrast;
        return 0;
 }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d547b93cb10171421710c57e4b855ce97fca6365

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to