mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[media] gspca: correct speed testing
Allow for SS+ devices Signed-off-by: Oliver Neukum <ONeukum@suse.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
c0936df43a
commit
8ad2d06f68
1 changed files with 1 additions and 1 deletions
|
@ -705,7 +705,7 @@ static int build_isoc_ep_tb(struct gspca_dev *gspca_dev,
|
||||||
psize = (psize & 0x07ff) * (1 + ((psize >> 11) & 3));
|
psize = (psize & 0x07ff) * (1 + ((psize >> 11) & 3));
|
||||||
bandwidth = psize * 1000;
|
bandwidth = psize * 1000;
|
||||||
if (gspca_dev->dev->speed == USB_SPEED_HIGH
|
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 *= 8;
|
||||||
bandwidth /= 1 << (ep->desc.bInterval - 1);
|
bandwidth /= 1 << (ep->desc.bInterval - 1);
|
||||||
if (bandwidth <= last_bw)
|
if (bandwidth <= last_bw)
|
||||||
|
|
Loading…
Reference in a new issue