From owner-freebsd-current@FreeBSD.ORG Sat Nov 8 09:30:22 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBA4A106568E for ; Sat, 8 Nov 2008 09:30:22 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 528448FC0C for ; Sat, 8 Nov 2008 09:30:22 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=d6BVkb5LuPPVEe4iNQMLyA==:17 a=nCUWVe9gwwRJmZ4bDSAA:9 a=6Ktj13jsxWkYblGlZ-4A:7 a=WRAJI3vXHN0rnko1b9Fs7_djo6UA:4 a=LY0hPdMaydYA:10 Received: from [62.113.135.6] (account mc467741@c2i.net [62.113.135.6] verified) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1142995427; Sat, 08 Nov 2008 10:30:20 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sat, 8 Nov 2008 10:32:22 +0100 User-Agent: KMail/1.9.7 References: <20081108070119.170A319758@smtp6-g19.free.fr> In-Reply-To: <20081108070119.170A319758@smtp6-g19.free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811081032.23575.hselasky@c2i.net> Cc: Raoul Subject: Re: usb2_sound behaviour X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Nov 2008 09:30:22 -0000 On Saturday 08 November 2008, Raoul wrote: > Hi all, > > usb2_sound does not detect an mbox (Digidesign) usb sound box. > world and kernel are all from this night. > as you can see the box is detected by snd_uaudio, but not by usb2_sound. > of course the box does not work at all even well detected by snd_uaudio, > perhaps this will come later. > i point out the detection problem at this moment. > > hope this serve > > best regards > > Raoul > rmgls@free.fr > Hi, Try to turn on uaudio debugging in USB2 when you plug the device: sysctl hw.usb2.uaudio.debug=15 Second: Dump the descriptors of your Audio device, if you have usbconfig installed. It is not installed by default and it depends on libusb20. You can most easiliy install usbconfig and libusb20 from my private SVN repository: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b Goto the i4b/trunk/libusb20 and make all install Goto the i4b/trunk/usbconfig and make all install usbconfig -u xx -a xx dump_device_desc dump_curr_config_desc One idea why your sound device does not work: It has multiple configurations. You need perhaps to select config index 1: usbconfig -u xx -a xx set_config 1 "xx" must be filled in properly of course. This can be done automatically by the "add_dev_quirk_vplh" command. See the UQ_CFG_INDEX_xxx quirks. You need to load "usb2_quirk" before it works. You can also try loading "usb2_input_hid". Maybe it presents itself like a HID device first, that's my guess. The old stack works a little bit differently with regard to selecting a configuration index. --HPS