Commit 58d0b2f6 authored by Hans de Goede's avatar Hans de Goede Committed by Mauro Carvalho Chehab

V4L/DVB (12619): gspca: mr97310a fix detection of sensortype for vivicam with id byte of 0x53

gspca: mr97310a fix detection of sensortype for vivicam with id byte of 0x53
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 89f0863c
...@@ -447,7 +447,8 @@ static int start_cif_cam(struct gspca_dev *gspca_dev) ...@@ -447,7 +447,8 @@ static int start_cif_cam(struct gspca_dev *gspca_dev)
* Elta-Media 8212dc 0x23 T. Kaiser 1 * Elta-Media 8212dc 0x23 T. Kaiser 1
* Philips dig. keych. 0x37 T. Kilgore 1 * Philips dig. keych. 0x37 T. Kilgore 1
*/ */
if ((data[0] & 0x78) == 8 || (data[0] & 0x2) == 0x2) if ((data[0] & 0x78) == 8 ||
((data[0] & 0x2) == 0x2 && data[0] != 0x53))
sd->sensor_type = 1; sd->sensor_type = 1;
PDEBUG(D_ERR, "Sensor type is %01x", sd->sensor_type); PDEBUG(D_ERR, "Sensor type is %01x", sd->sensor_type);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment