aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/gspca/ov519.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c
index 19378dde27c6..4df4eec9f7e7 100644
--- a/drivers/media/video/gspca/ov519.c
+++ b/drivers/media/video/gspca/ov519.c
@@ -126,6 +126,7 @@ static struct ctrl sd_ctrls[] = {
126 .get = sd_getcolors, 126 .get = sd_getcolors,
127 }, 127 },
128/* next controls work with ov7670 only */ 128/* next controls work with ov7670 only */
129#define HFLIP_IDX 3
129 { 130 {
130 { 131 {
131 .id = V4L2_CID_HFLIP, 132 .id = V4L2_CID_HFLIP,
@@ -140,6 +141,7 @@ static struct ctrl sd_ctrls[] = {
140 .set = sd_sethflip, 141 .set = sd_sethflip,
141 .get = sd_gethflip, 142 .get = sd_gethflip,
142 }, 143 },
144#define VFLIP_IDX 4
143 { 145 {
144 { 146 {
145 .id = V4L2_CID_VFLIP, 147 .id = V4L2_CID_VFLIP,
@@ -1370,6 +1372,9 @@ static int sd_config(struct gspca_dev *gspca_dev,
1370 sd->colors = COLOR_DEF; 1372 sd->colors = COLOR_DEF;
1371 sd->hflip = HFLIP_DEF; 1373 sd->hflip = HFLIP_DEF;
1372 sd->vflip = VFLIP_DEF; 1374 sd->vflip = VFLIP_DEF;
1375 if (sd->sensor != SEN_OV7670)
1376 gspca_dev->ctrl_dis = (1 << HFLIP_IDX)
1377 | (1 << VFLIP_IDX);
1373 return 0; 1378 return 0;
1374error: 1379error:
1375 PDEBUG(D_ERR, "OV519 Config failed"); 1380 PDEBUG(D_ERR, "OV519 Config failed");