V4L/DVB (13305): gspca - sonixj: The V flip control does not exist for all sensors.
authorJean-Francois Moine <moinejf@free.fr>
Mon, 2 Nov 2009 12:58:49 +0000 (09:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:18 +0000 (18:41 -0200)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/sonixj.c

index bd07660..e75e7e3 100644 (file)
@@ -1549,6 +1549,8 @@ static void setvflip(struct sd *sd)
 {
        u8 comn;
 
+       if (sd->gspca_dev.ctrl_dis & (1 << VFLIP_IDX))
+               return;
        if (sd->sensor == SENSOR_OV7630) {
                comn = 0x02;
                if (!sd->vflip)