summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-07-08 10:21:50 +0200
committerJean-Francois Moine <moinejf@free.fr>2009-07-08 10:21:50 +0200
commite18804d1a527fe032a9ca9c4ce0b19bcd1e4b9e5 (patch)
tree18bde5339760c175bd11b418f4c88a74e6709a03
parent41eef36b70dbd593c62a427c75d0141be165ab14 (diff)
downloadmediapointer-dvb-s2-e18804d1a527fe032a9ca9c4ce0b19bcd1e4b9e5.tar.gz
mediapointer-dvb-s2-e18804d1a527fe032a9ca9c4ce0b19bcd1e4b9e5.tar.bz2
gspca - sonixj: Bad sensor init of non ov76xx sensors.
From: Jean-Francois Moine <moinejf@free.fr> The bug was introduced when adding the light frequency control Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
-rw-r--r--linux/drivers/media/video/gspca/sonixj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/gspca/sonixj.c b/linux/drivers/media/video/gspca/sonixj.c
index a2fb94eb7..915b3a13e 100644
--- a/linux/drivers/media/video/gspca/sonixj.c
+++ b/linux/drivers/media/video/gspca/sonixj.c
@@ -1666,6 +1666,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 */