svn commit: r249844 - head/sys/dev/sound/usb

Hans Petter Selasky hselasky at FreeBSD.org
Wed Apr 24 16:22:54 UTC 2013


Author: hselasky
Date: Wed Apr 24 16:22:53 2013
New Revision: 249844
URL: http://svnweb.freebsd.org/changeset/base/249844

Log:
  Fix the USB audio feedback endpoint algorithm. There should not
  be any need to bias the returned value.
  
  Reported by:	Craig Leres <leres at ee.lbl.gov>

Modified:
  head/sys/dev/sound/usb/uaudio.c

Modified: head/sys/dev/sound/usb/uaudio.c
==============================================================================
--- head/sys/dev/sound/usb/uaudio.c	Wed Apr 24 13:54:55 2013	(r249843)
+++ head/sys/dev/sound/usb/uaudio.c	Wed Apr 24 16:22:53 2013	(r249844)
@@ -1981,10 +1981,6 @@ uaudio_chan_play_sync_callback(struct us
 		while (temp > (sample_rate + (sample_rate / 2)))
 			temp /= 2;
 
-		/* bias */
-
-		temp += (sample_rate + 1999) / 2000;
-
 		/* compare */
 
 		DPRINTF("Comparing %d < %d\n",


More information about the svn-src-head mailing list