diff options
author | Erik Andrén <erik.andren@gmail.com> | 2009-09-14 18:14:41 +0200 |
---|---|---|
committer | Erik Andrén <erik.andren@gmail.com> | 2009-09-14 18:14:41 +0200 |
commit | 292192340e03288401f283eacc14f07b05f7d018 (patch) | |
tree | 44d0fa75dc10a81e33030aec623703e94cbdf0bf /linux/drivers/media/video/gspca/m5602/m5602_ov7660.c | |
parent | d3114e784667e62ce369c84e53f8f8431fdc6067 (diff) | |
download | mediapointer-dvb-s2-292192340e03288401f283eacc14f07b05f7d018.tar.gz mediapointer-dvb-s2-292192340e03288401f283eacc14f07b05f7d018.tar.bz2 |
gspca - m5602-ov7660: Disable red and blue gain for now
From: Erik Andrén <erik.andren@gmail.com>
Red and blue gain isn't handled in conformance with the v4l2 specification. Disable them for now.
Priority: normal
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux/drivers/media/video/gspca/m5602/m5602_ov7660.c')
-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) |