aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac7311.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/pac7311.c')
-rw-r--r--drivers/media/video/gspca/pac7311.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
index 3c5142852f27..69d610062d00 100644
--- a/drivers/media/video/gspca/pac7311.c
+++ b/drivers/media/video/gspca/pac7311.c
@@ -150,6 +150,7 @@ static struct ctrl sd_ctrls[] = {
150 .get = sd_getautogain, 150 .get = sd_getautogain,
151 }, 151 },
152/* next controls work with pac7302 only */ 152/* next controls work with pac7302 only */
153#define HFLIP_IDX 4
153 { 154 {
154 { 155 {
155 .id = V4L2_CID_HFLIP, 156 .id = V4L2_CID_HFLIP,
@@ -164,6 +165,7 @@ static struct ctrl sd_ctrls[] = {
164 .set = sd_sethflip, 165 .set = sd_sethflip,
165 .get = sd_gethflip, 166 .get = sd_gethflip,
166 }, 167 },
168#define VFLIP_IDX 5
167 { 169 {
168 { 170 {
169 .id = V4L2_CID_VFLIP, 171 .id = V4L2_CID_VFLIP,
@@ -467,6 +469,8 @@ static int sd_config(struct gspca_dev *gspca_dev,
467 469
468 cam->cam_mode = vga_mode; 470 cam->cam_mode = vga_mode;
469 cam->nmodes = ARRAY_SIZE(vga_mode); 471 cam->nmodes = ARRAY_SIZE(vga_mode);
472 gspca_dev->ctrl_dis = (1 << HFLIP_IDX)
473 | (1 << VFLIP_IDX);
470 } 474 }
471 475
472 sd->brightness = BRIGHTNESS_DEF; 476 sd->brightness = BRIGHTNESS_DEF;