V4L/DVB: sn9c102: Make hv7131d sensor code also recognize the HV7131E
authorHans de Goede <hdegoede@redhat.com>
Thu, 11 Mar 2010 09:12:39 +0000 (06:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:50:12 +0000 (00:50 -0300)
The hv7131d sensor code also works for the hv7131e, this patch changes
it to also recognize the hv7131e sensor id.

Tested-by: Frank Danapfel <fdanapfe@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sn9c102/sn9c102_hv7131d.c

index db2434948939f226c228c110250ec8affd69a868..2dce5c908c8e257191cc41b4669c18b00ea27055 100644 (file)
@@ -255,7 +255,7 @@ int sn9c102_probe_hv7131d(struct sn9c102_device* cam)
        if (err || r0 < 0 || r1 < 0)
                return -EIO;
 
-       if (r0 != 0x00 || r1 != 0x04)
+       if ((r0 != 0x00 && r0 != 0x01) || r1 != 0x04)
                return -ENODEV;
 
        sn9c102_attach_sensor(cam, &hv7131d);