PERFORCE change 178075 for review

Hans Petter Selasky hselasky at c2i.net
Mon May 10 23:42:33 UTC 2010


On Tuesday 11 May 2010 01:35:49 Hans Petter Selasky wrote:
> http://p4web.freebsd.org/@@178075?ac=10
> 

The following change is about computing the correct delay in the frame-list:

>  	if ((xfer->endpoint->is_synced == 0) ||
> -	    (buf_offset < ((xfer->nframes + 7) / 8))) {
> +	    (buf_offset < (((xfer->nframes << shift) + 7) / 8))) {
>  		/*
>  		 * If there is data underflow or the pipe queue is empty we
>  		 * schedule the transfer a few frames ahead of the current
> @@ -2844,7 +2855,7 @@
>  	 */
>  	xfer->isoc_time_complete =
>  	    usb_isoc_time_expand(&sc->sc_bus, nframes) + buf_offset +
> -	    ((xfer->nframes + 7) / 8);
> +	    (((xfer->nframes << shift) + 7) / 8);
> 
>  	/* get the real number of frames */
> 
> 


More information about the p4-projects mailing list