From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 14 21:19:28 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B339D1065687 for ; Fri, 14 Nov 2008 21:19:28 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swipnet.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 4CFA48FC17 for ; Fri, 14 Nov 2008 21:19:28 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=AZAC4kOax5IA:10 a=aniA1o7mVp4QawOfT9qHqA==:17 a=z_zqISx-AAAA:8 a=92eACGCfWF7GhyAGGDYA:9 a=fHERo2oLfVtLz19n6mgPLlINN5EA:4 a=50e4U0PicR4A:10 Received: from [62.113.133.1] (account mc467741@c2i.net [62.113.133.1] verified) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 408008088; Fri, 14 Nov 2008 21:19:26 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Fri, 14 Nov 2008 21:21:27 +0100 User-Agent: KMail/1.9.7 References: <200811141541.49595.shoesoft@gmx.net> <200811141811.24491.hselasky@c2i.net> <200811142114.07216.shoesoft@gmx.net> In-Reply-To: <200811142114.07216.shoesoft@gmx.net> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200811142121.28231.hselasky@c2i.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Subject: Re: usb2: no sound with M-Audio Transit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 21:19:28 -0000 Hi Guys, Has 24-bit audio ever been tested with USB Audio devices ? There might be a problem with 16-bit to 24-bit conversion. Does the PCM layer use 32-bits of data to store the 24-bits ? What about buffer sizes? Are all buffers modulo 3 when using 24-bit data? --HPS On Friday 14 November 2008, Stefan Ehmann wrote: > On Friday 14 November 2008 18:11:23 Hans Petter Selasky wrote: > > On Friday 14 November 2008, Stefan Ehmann wrote: > > > http://stud4.tuwien.ac.at/~e0125637/fbsd/transit_config.dump > > > > Maybe there is something wrong with the 16-bit to 24-bit data conversion > > ? > > > > Try to change: > > > > static uint8_t uaudio_default_bits = 32; > > > > to: > > > > static uint8_t uaudio_default_bits = 16; > > > > In: > > > > src/sys/dev/usb2/sound/uaudio2.c > > > > Then recompile and re-install "uaudio2.c". > > Great, now it sounds like actual music :) > > It now shows up as 48000Hz/16bit in dmesg. > > The mic mixer device seems to be what shows up as speaker in the old > driver.