Browse Source

V4L/DVB (13305): gspca - sonixj: The V flip control does not exist for all sensors.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Jean-Francois Moine 15 years ago
parent
commit
0939e26669
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/media/video/gspca/sonixj.c

+ 2 - 0
drivers/media/video/gspca/sonixj.c

@@ -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)