Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219315
b: refs/heads/master
c: 9bb7262
h: refs/heads/master
i:
  219313: 405fb2f
  219311: 6823582
v: v3
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 287f48a commit ef6f239
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11fc5baf1dab2d30f03a391cabc5fd1808cfbe29
refs/heads/master: 9bb7262de9c077ccccb129f47d128edb7af5f92e
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/uvc/uvc_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ static void uvc_fixup_video_ctrl(struct uvc_streaming *stream,
bandwidth /= 8;
bandwidth += 12;

/* The bandwidth estimate is too low for many cameras. Don't use
* maximum packet sizes lower than 1024 bytes to try and work
* around the problem. According to measurements done on two
* different camera models, the value is high enough to get most
* resolutions working while not preventing two simultaneous
* VGA streams at 15 fps.
*/
bandwidth = max_t(u32, bandwidth, 1024);

ctrl->dwMaxPayloadTransferSize = bandwidth;
}
}
Expand Down

0 comments on commit ef6f239

Please sign in to comment.