Skip to content

Commit

Permalink
[media] gspca: correct speed testing
Browse files Browse the repository at this point in the history
Allow for SS+ devices

Signed-off-by: Oliver Neukum <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
oneukum authored and mchehab committed Jul 8, 2016
1 parent c0936df commit 8ad2d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ static int build_isoc_ep_tb(struct gspca_dev *gspca_dev,
psize = (psize & 0x07ff) * (1 + ((psize >> 11) & 3));
bandwidth = psize * 1000;
if (gspca_dev->dev->speed == USB_SPEED_HIGH
|| gspca_dev->dev->speed == USB_SPEED_SUPER)
|| gspca_dev->dev->speed >= USB_SPEED_SUPER)
bandwidth *= 8;
bandwidth /= 1 << (ep->desc.bInterval - 1);
if (bandwidth <= last_bw)
Expand Down

0 comments on commit 8ad2d06

Please sign in to comment.