diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-08-23 12:56:49 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-08-23 12:56:49 +0200 |
commit | 02f9092857f057050d3b357e37e446b28d39d307 (patch) | |
tree | 044d131ef9c907ddc7ba9df2d9635f080587a211 /linux/drivers/media/video/gspca/pac7311.c | |
parent | f0d8aad4b2edd8a33896604bd049ac7c165ce5d8 (diff) | |
download | mediapointer-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/pac7311.c')
-rw-r--r-- | linux/drivers/media/video/gspca/pac7311.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/pac7311.c b/linux/drivers/media/video/gspca/pac7311.c index 4a849f190..5041bf164 100644 --- a/linux/drivers/media/video/gspca/pac7311.c +++ b/linux/drivers/media/video/gspca/pac7311.c @@ -150,6 +150,7 @@ static struct ctrl sd_ctrls[] = { .get = sd_getautogain, }, /* next controls work with pac7302 only */ +#define HFLIP_IDX 4 { { .id = V4L2_CID_HFLIP, @@ -164,6 +165,7 @@ static struct ctrl sd_ctrls[] = { .set = sd_sethflip, .get = sd_gethflip, }, +#define VFLIP_IDX 5 { { .id = V4L2_CID_VFLIP, @@ -481,6 +483,8 @@ static int sd_config(struct gspca_dev *gspca_dev, cam->cam_mode = vga_mode; cam->nmodes = ARRAY_SIZE(vga_mode); + gspca_dev->ctrl_dis = (1 << HFLIP_IDX) + | (1 << VFLIP_IDX); } sd->brightness = BRIGHTNESS_DEF; |