mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			674 B
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			674 B
		
	
	
	
		
			Diff
		
	
	
| --- linux-4.9.37/drivers/media/usb/uvc/uvc_video.c	2017-07-12 16:42:41.000000000 +0300
 | |
| +++ linux-4.9.y/drivers/media/usb/uvc/uvc_video.c	2021-06-07 13:01:33.000000000 +0300
 | |
| @@ -1467,6 +1467,7 @@
 | |
|  					 struct usb_host_endpoint *ep)
 | |
|  {
 | |
|  	u16 psize;
 | |
| +	u16 mult;
 | |
|  
 | |
|  	switch (dev->speed) {
 | |
|  	case USB_SPEED_SUPER:
 | |
| @@ -1474,7 +1475,8 @@
 | |
|  		return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval);
 | |
|  	case USB_SPEED_HIGH:
 | |
|  		psize = usb_endpoint_maxp(&ep->desc);
 | |
| -		return (psize & 0x07ff) * (1 + ((psize >> 11) & 3));
 | |
| +		mult = usb_endpoint_maxp_mult(&ep->desc);
 | |
| +		return (psize & 0x07ff) * mult;
 | |
|  	case USB_SPEED_WIRELESS:
 | |
|  		psize = usb_endpoint_maxp(&ep->desc);
 | |
|  		return psize;
 |