From: Jean-Francois Moine Date: Sun, 22 Mar 2009 19:29:36 +0000 (-0300) Subject: V4L/DVB (11143): gspca - t613: Bad sensor detection. X-Git-Tag: v3.0~10247^2~142 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3da37e42baa8bd5953899ac078e36c97ba172e42;p=platform%2Fkernel%2Flinux-amlogic.git V4L/DVB (11143): gspca - t613: Bad sensor detection. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index 3539310..9f31244 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c @@ -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;