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 <le...@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", _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"