summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/etoms.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-08-23 12:56:49 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-08-23 12:56:49 +0200
commit02f9092857f057050d3b357e37e446b28d39d307 (patch)
tree044d131ef9c907ddc7ba9df2d9635f080587a211 /linux/drivers/media/video/gspca/etoms.c
parentf0d8aad4b2edd8a33896604bd049ac7c165ce5d8 (diff)
downloadmediapointer-dvb-s2-02f9092857f057050d3b357e37e446b28d39d307.tar.gz
mediapointer-dvb-s2-02f9092857f057050d3b357e37e446b28d39d307.tar.bz2
gspca: Set DISABLED the disabled controls at query control time.
From: Jean-Francois Moine <moinejf@free.fr> Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/etoms.c')
-rw-r--r--linux/drivers/media/video/gspca/etoms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/etoms.c b/linux/drivers/media/video/gspca/etoms.c
index 626d03e17..5e72f6149 100644
--- a/linux/drivers/media/video/gspca/etoms.c
+++ b/linux/drivers/media/video/gspca/etoms.c
@@ -81,6 +81,7 @@ static struct ctrl sd_ctrls[] = {
.set = sd_setcontrast,
.get = sd_getcontrast,
},
+#define COLOR_IDX 2
{
{
.id = V4L2_CID_SATURATION,
@@ -665,6 +666,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
} else {
cam->cam_mode = vga_mode;
cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
+ gspca_dev->ctrl_dis = (1 << COLOR_IDX);
}
sd->brightness = BRIGHTNESS_DEF;
sd->contrast = CONTRAST_DEF;