From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 6 15:27:23 2005 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D956F16A4CE for ; Sun, 6 Mar 2005 15:27:23 +0000 (GMT) Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EDF943D48 for ; Sun, 6 Mar 2005 15:27:23 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd27.aul.t-online.de by mailout06.sul.t-online.com with smtp id 1D7xf7-0005G8-03; Sun, 06 Mar 2005 16:27:21 +0100 Received: from Andro-Beta.Leidinger.net (VyP8csZaoe29rRcNgPwvJhFKT0H2GjHwZitSHwZXrYhh0uEvd3p60h@[84.128.202.132]) by fwd27.sul.t-online.de with esmtp id 1D7xer-1WC4h60; Sun, 6 Mar 2005 16:27:05 +0100 Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) j26FQ8Mc011467; Sun, 6 Mar 2005 16:26:08 +0100 (CET) (envelope-from Alexander@Leidinger.net) Date: Sun, 6 Mar 2005 16:28:11 +0100 From: Alexander Leidinger To: Mathew Kanner Message-ID: <20050306162811.694d9c82@Magellan.Leidinger.net> In-Reply-To: <20050305224005.GC4237@cnd.mcgill.ca> References: <20050305224005.GC4237@cnd.mcgill.ca> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ID: VyP8csZaoe29rRcNgPwvJhFKT0H2GjHwZitSHwZXrYhh0uEvd3p60h@t-dialin.net X-TOI-MSGID: 13efeb96-1aba-4de2-bb72-aef4c0c1ba4d cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio patch, configurable buffer size X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2005 15:27:24 -0000 On Sat, 5 Mar 2005 17:40:05 -0500 Mathew Kanner wrote: > Hi All, > I couldn't use my usb device because the default buffer size > (16*1024 bytes) was too much to be allocated (dma changes that > happened a while ago). The following is a patch to make it a tunable: > > http://www.cnd.mcgill.ca/~mat/uaudio-HEAD-buffersize-tunable.diff.gz There's an open PR about it. It changes the buffer size. AFAIR it also talks about changing the value of a parameter to a busdma call instead. I've patched the busdma call and now the device is detected here (but I don't hear any output...). I think you should add another set of validation code: The buffer size is divided by 2 in the code, so I think it should at least print a warning if "buffsize % 2 != 0". > Would love to hear if this works for anybody else, I haven't tried it yet, maybe I get time to test it in the next days. Can you also please have a look at PR usb/78028? It adds some info to /dev/sndstat. Bye, Alexander. -- To boldly go where I surely don't belong. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7