projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f0863
)
V4L/DVB (12619): gspca: mr97310a fix detection of sensortype for vivicam with id...
author
Hans de Goede
<hdgoede@redhat.com>
Fri, 14 Aug 2009 09:56:32 +0000
(06:56 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 12 Sep 2009 15:19:54 +0000
(12:19 -0300)
gspca: mr97310a fix detection of sensortype for vivicam with id byte of 0x53
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/mr97310a.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/gspca/mr97310a.c
b/drivers/media/video/gspca/mr97310a.c
index 3a3edf82a361fc08db9298fe80314229ef25d42b..db2f84e635c5bb922065046b96f13330d0a2738b 100644
(file)
--- a/
drivers/media/video/gspca/mr97310a.c
+++ b/
drivers/media/video/gspca/mr97310a.c
@@
-447,7
+447,8
@@
static int start_cif_cam(struct gspca_dev *gspca_dev)
* Elta-Media 8212dc 0x23 T. Kaiser 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;
PDEBUG(D_ERR, "Sensor type is %01x", sd->sensor_type);