diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-04-24 16:22:53 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-04-24 16:22:53 +0000 |
commit | 956702e6712605c8c0ffd2e0f2db91549fe44421 (patch) | |
tree | b4eee76529a9fabce85bdbe5c8686148959fa0e7 /sys/dev/sound | |
parent | 87ef00d48cf399d2e89312706d8d6b8bf8906f38 (diff) | |
download | FreeBSD-src-956702e6712605c8c0ffd2e0f2db91549fe44421.zip FreeBSD-src-956702e6712605c8c0ffd2e0f2db91549fe44421.tar.gz |
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>
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/usb/uaudio.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index b732c83..f1a064e 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -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", |