]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (11143): gspca - t613: Bad sensor detection.
authorJean-Francois Moine <moinejf@free.fr>
Sun, 22 Mar 2009 19:29:36 +0000 (16:29 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:32 +0000 (12:43 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/t613.c

index 353931023ac81a5d6479225c1f7985f93c45de00..9f312441092edf7c2236bea6265d36e6e5cbbc30 100644 (file)
@@ -679,7 +679,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
 
        sensor_id = (reg_r(gspca_dev, 0x06) << 8)
                        | reg_r(gspca_dev, 0x07);
-       switch (sensor_id) {
+       switch (sensor_id & 0xff0f) {
        case 0x0801:
                PDEBUG(D_PROBE, "sensor tas5130a");
                sd->sensor = SENSOR_TAS5130A;