V4L/DVB (12267): gspca - sonixj: Bad sensor init of non ov76xx sensors.
authorJean-Francois Moine <moinejf@free.fr>
Wed, 8 Jul 2009 08:21:50 +0000 (05:21 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 24 Jul 2009 17:03:29 +0000 (14:03 -0300)
The bug was introduced when adding the light frequency control

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 0d02f41fa7d099835e390c23e957806c277b4f16..bad309b90cce4608ee7c0e2299c73c75546af303 100644 (file)
@@ -1634,6 +1634,8 @@ static void setfreq(struct gspca_dev *gspca_dev)
 {
        struct sd *sd = (struct sd *) gspca_dev;
 
+       if (gspca_dev->ctrl_dis & (1 << FREQ_IDX))
+               return;
        if (sd->sensor == SENSOR_OV7660) {
                switch (sd->freq) {
                case 0: /* Banding filter disabled */