Fix the USB audio feedback endpoint algorithm. There should not

be any need to bias the returned value.

Reported by:	Craig Leres <leres@ee.lbl.gov>
This commit is contained in:
Hans Petter Selasky 2013-04-24 16:22:53 +00:00
parent 2ebcc8ac4a
commit bf02c706c7

View File

@ -1981,10 +1981,6 @@ uaudio_chan_play_sync_callback(struct usb_xfer *xfer, usb_error_t error)
while (temp > (sample_rate + (sample_rate / 2)))
temp /= 2;
/* bias */
temp += (sample_rate + 1999) / 2000;
/* compare */
DPRINTF("Comparing %d < %d\n",