Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65907
b: refs/heads/master
c: 9e19db5
h: refs/heads/master
i:
  65905: dd0b39a
  65903: 400b4a6
v: v3
  • Loading branch information
Brett Warden authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 93f9ff5 commit de97c9a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0b67f5c568c545cb36f88e9f418af2df1cc58589
refs/heads/master: 9e19db5b6dda251b8d76c3a0069e63faca6be3f0
18 changes: 16 additions & 2 deletions trunk/drivers/media/video/bw-qcam.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,17 @@ static inline void write_lpdata(struct qcam_device *q, int d)

static inline void write_lpcontrol(struct qcam_device *q, int d)
{
if(0x20 & d) {
/* Set bidirectional mode to reverse (data in) */
parport_data_reverse(q->pport);
} else {
/* Set bidirectional mode to forward (data out) */
parport_data_forward(q->pport);
}

/* Now issue the regular port command, but strip out the
* direction flag */
d &= ~0x20;
parport_write_control(q->pport, d);
}

Expand Down Expand Up @@ -344,10 +355,13 @@ static int qc_detect(struct qcam_device *q)
/* Be (even more) liberal in what you accept... */

/* if (count > 30 && count < 200) */
if (count > 20 && count < 300)
if (count > 20 && count < 400)
{
return 1; /* found */
else
} else {
printk(KERN_ERR "No Quickcam found on port %s\n", q->pport->name);
return 0; /* not found */
}
}


Expand Down

0 comments on commit de97c9a

Please sign in to comment.