diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-09-03 16:12:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 17:37:36 -0400 |
commit | de00448f708a2fd705f9c5ccdfa383dbf3dcef92 (patch) | |
tree | 92949cea7eff70e643ebbaf1b6ac388e8e73d000 /drivers | |
parent | 012d6b029ec17f45374303bbdccd0bc206725751 (diff) |
V4L/DVB (8823): gspca: H and V flips work for ov7670 only in ov519.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/ov519.c | 5 |
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; |
1374 | error: | 1379 | error: |
1375 | PDEBUG(D_ERR, "OV519 Config failed"); | 1380 | PDEBUG(D_ERR, "OV519 Config failed"); |