summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean-Francois Moine2009-11-02 13:58:49 +0100
committerMauro Carvalho Chehab2009-12-05 21:41:18 +0100
commit0939e266697d516ba09cfaec6a97887600a4162d (patch)
treecc0d35647f5f70abf2a6f079fb4ec8ed20cf55c0 /drivers
parentV4L/DVB (13304): gspca - sonixj: Don't access the sensor when setting the bri... (diff)
downloadkernel-qcow2-linux-0939e266697d516ba09cfaec6a97887600a4162d.tar.gz
kernel-qcow2-linux-0939e266697d516ba09cfaec6a97887600a4162d.tar.xz
kernel-qcow2-linux-0939e266697d516ba09cfaec6a97887600a4162d.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/sonixj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c
index bd076605c4bb..e75e7e36e7da 100644
--- a/drivers/media/video/gspca/sonixj.c
+++ b/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)