From owner-svn-src-all@FreeBSD.ORG Wed Apr 24 16:22:54 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 291B2B9D; Wed, 24 Apr 2013 16:22:54 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 1BD971EA1; Wed, 24 Apr 2013 16:22:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r3OGMrEx009989; Wed, 24 Apr 2013 16:22:53 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r3OGMr04009988; Wed, 24 Apr 2013 16:22:53 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201304241622.r3OGMr04009988@svn.freebsd.org> From: Hans Petter Selasky Date: Wed, 24 Apr 2013 16:22:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249844 - head/sys/dev/sound/usb X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2013 16:22:54 -0000 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 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",