Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Apr 2013 16:22:53 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249844 - head/sys/dev/sound/usb
Message-ID:  <201304241622.r3OGMr04009988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304241622.r3OGMr04009988>