summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/t613.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-03-22 16:29:36 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 12:43:32 -0300
commit3da37e42baa8bd5953899ac078e36c97ba172e42 (patch)
tree080c5acc9f35a712f9d16a1f91284e4f13b8b692 /drivers/media/video/gspca/t613.c
parentfadadb7d7ad1d6c09863fcf24f83e59f596201ed (diff)
V4L/DVB (11143): gspca - t613: Bad sensor detection.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/t613.c')
-rw-r--r--drivers/media/video/gspca/t613.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c
index 353931023ac..9f312441092 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;