diff options
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/gspca/m5602/m5602_ov7660.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c b/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c index 9648b90ee..e8e9b0162 100644 --- a/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c +++ b/linux/drivers/media/video/gspca/m5602/m5602_ov7660.c @@ -20,10 +20,12 @@ static int ov7660_get_gain(struct gspca_dev *gspca_dev, __s32 *val); static int ov7660_set_gain(struct gspca_dev *gspca_dev, __s32 val); +#if 0 static int ov7660_get_blue_gain(struct gspca_dev *gspca_dev, __s32 *val); static int ov7660_set_blue_gain(struct gspca_dev *gspca_dev, __s32 val); static int ov7660_get_red_gain(struct gspca_dev *gspca_dev, __s32 *val); static int ov7660_set_red_gain(struct gspca_dev *gspca_dev, __s32 val); +#endif static int ov7660_get_auto_white_balance(struct gspca_dev *gspca_dev, __s32 *val); static int ov7660_set_auto_white_balance(struct gspca_dev *gspca_dev, @@ -54,6 +56,7 @@ const static struct ctrl ov7660_ctrls[] = { .get = ov7660_get_gain }, #define BLUE_BALANCE_IDX 2 +#if 0 { { .id = V4L2_CID_BLUE_BALANCE, @@ -68,7 +71,9 @@ const static struct ctrl ov7660_ctrls[] = { .set = ov7660_set_blue_gain, .get = ov7660_get_blue_gain }, +#endif #define RED_BALANCE_IDX 3 +#if 0 { { .id = V4L2_CID_RED_BALANCE, @@ -83,6 +88,7 @@ const static struct ctrl ov7660_ctrls[] = { .set = ov7660_set_red_gain, .get = ov7660_get_red_gain }, +#endif #define AUTO_WHITE_BALANCE_IDX 4 { { @@ -279,7 +285,7 @@ int ov7660_init(struct sd *sd) sensor_settings[AUTO_EXPOSURE_IDX]); if (err < 0) return err; - +#if 0 err = ov7660_set_blue_gain(&sd->gspca_dev, sensor_settings[BLUE_BALANCE_IDX]); if (err < 0) @@ -289,7 +295,7 @@ int ov7660_init(struct sd *sd) sensor_settings[RED_BALANCE_IDX]); if (err < 0) return err; - +#endif err = ov7660_set_hflip(&sd->gspca_dev, sensor_settings[HFLIP_IDX]); if (err < 0) @@ -344,6 +350,7 @@ static int ov7660_set_gain(struct gspca_dev *gspca_dev, __s32 val) return err; } +#if 0 static int ov7660_get_blue_gain(struct gspca_dev *gspca_dev, __s32 *val) { struct sd *sd = (struct sd *) gspca_dev; @@ -393,6 +400,7 @@ static int ov7660_set_red_gain(struct gspca_dev *gspca_dev, __s32 val) err = m5602_write_sensor(sd, OV7660_RED_GAIN, &i2c_data, 1); return err; } +#endif static int ov7660_get_auto_white_balance(struct gspca_dev *gspca_dev, __s32 *val) |