From owner-cvs-src@FreeBSD.ORG Sun Nov 13 14:20:27 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2841D16A41F; Sun, 13 Nov 2005 14:20:27 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E836643D45; Sun, 13 Nov 2005 14:20:26 +0000 (GMT) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jADEKQG7049840; Sun, 13 Nov 2005 14:20:26 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from netchild@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jADEKQuY049839; Sun, 13 Nov 2005 14:20:26 GMT (envelope-from netchild) Message-Id: <200511131420.jADEKQuY049839@repoman.freebsd.org> From: Alexander Leidinger Date: Sun, 13 Nov 2005 14:20:26 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/sound/usb uaudio.c uaudio.h uaudio_pcm.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2005 14:20:27 -0000 netchild 2005-11-13 14:20:26 UTC FreeBSD src repository Modified files: sys/dev/sound/usb uaudio.c uaudio.h uaudio_pcm.c Log: Add support for 24/32 bit audio formats/conversion. It may be the case that you may hear some unwanted noise while playing back with 24/32 bit. This is a problem in the USB system. Explanation from Hans Petter Selasky: ---snip--- The current USB sound driver only uses one isochronous buffer, that is restarted when it is completed. This will lead to a short period of time, +1ms, where no sound data is sent to the external USB device. Depending on the load of your computer, this can be as much as 50ms. So the USB sound driver must use 2 isochronous transfers. At the beginning one will queue both. Then these are restarted on completion. This will result in a constant-rate data stream to the external sound device, a minimum sound buffer equal to the size of the isochronous buffer, and possibly the sound will reach your ears with less delay. Little delay is a result of constant data rate. Currently only my USB driver will support that. If one tries that with the USB driver in *BSD, then it will crash at the first moment one gets a buffer underrun. ---snip--- Submitted by: Kazuhito HONDA Mono-recording still not tested by: julian Revision Changes Path 1.17 +214 -71 src/sys/dev/sound/usb/uaudio.c 1.7 +2 -2 src/sys/dev/sound/usb/uaudio.h 1.18 +48 -40 src/sys/dev/sound/usb/uaudio_pcm.c