summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-08-26 08:17:16 +0200
committerJean-Francois Moine <moinejf@free.fr>2008-08-26 08:17:16 +0200
commitb055b53a9475e458a3c95cb67cd1b222c08f88ba (patch)
tree450a0789da370a78bed9ccfa62fa1025af7879f9 /linux/drivers/media
parent9e60449d4bd9eb32a8eab36e880e8db117cd2850 (diff)
downloadmediapointer-dvb-s2-b055b53a9475e458a3c95cb67cd1b222c08f88ba.tar.gz
mediapointer-dvb-s2-b055b53a9475e458a3c95cb67cd1b222c08f88ba.tar.bz2
gspca: H and V flips work for ov7670 only in ov519.
From: Jean-Francois Moine <moinejf@free.fr> Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/gspca/ov519.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/ov519.c b/linux/drivers/media/video/gspca/ov519.c
index 356758806..bb2842114 100644
--- a/linux/drivers/media/video/gspca/ov519.c
+++ b/linux/drivers/media/video/gspca/ov519.c
@@ -126,6 +126,7 @@ static struct ctrl sd_ctrls[] = {
.get = sd_getcolors,
},
/* next controls work with ov7670 only */
+#define HFLIP_IDX 3
{
{
.id = V4L2_CID_HFLIP,
@@ -140,6 +141,7 @@ static struct ctrl sd_ctrls[] = {
.set = sd_sethflip,
.get = sd_gethflip,
},
+#define VFLIP_IDX 4
{
{
.id = V4L2_CID_VFLIP,
@@ -1370,6 +1372,9 @@ static int sd_config(struct gspca_dev *gspca_dev,
sd->colors = COLOR_DEF;
sd->hflip = HFLIP_DEF;
sd->vflip = VFLIP_DEF;
+ if (sd->sensor != SEN_OV7670)
+ gspca_dev->ctrl_dis = (1 << HFLIP_IDX)
+ | (1 << VFLIP_IDX);
return 0;
error:
PDEBUG(D_ERR, "OV519 Config failed");