From owner-freebsd-multimedia@FreeBSD.ORG Wed Jun 15 20:23:37 2011 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 52CC9106566B for ; Wed, 15 Jun 2011 20:23:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id CE8D38FC1F for ; Wed, 15 Jun 2011 20:23:36 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=foYCH16XITld/fbj26BZH1w5uHt8raPKsF/FGYRmlU4= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=onvL5icAhc4A:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=TfWq9i5PAAAA:8 a=KuDOeYcXxroCCVdn6iAA:9 a=wPNLvfGTeEIA:10 a=7t4jVOfIR2gA:10 a=Vce-_cLKp2kA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 140835036; Wed, 15 Jun 2011 22:23:34 +0200 From: Hans Petter Selasky To: Olivier Smedts Date: Wed, 15 Jun 2011 22:22:08 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <4DF87676.1090303@ladisch.de> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106152222.08318.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, Clemens Ladisch Subject: Re: [uaudio] M-Audio Fast Track Ultra is not recognized, where to start ? 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: Wed, 15 Jun 2011 20:23:37 -0000 On Wednesday 15 June 2011 22:05:17 Olivier Smedts wrote: > 2011/6/15 Clemens Ladisch : > > Olivier Smedts wrote: > >> 2011/6/15 Olivier Smedts : > >> > I think "uaudio_mixer_fill_info: invalid Audio Control header" is > >> > interesting. > > > > The audio control interface is marked as being vendor-specific, so you'd > > have to add some quirks to the driver. > > > > The control and audio interfaces actually have audio descriptors, so you > > just have to tell the driver to look at the interfaces even though their > > bInterfaceClass seems to be wrong. > > Ok, I tried this : > # kldload snd_uaudio.ko > # kldload usb_quirk.ko > # sysctl hw.usb.uaudio.debug=1 > # usbconfig add_dev_quirk_vplh 0x0763 0x2080 0x0000 0xffff > UQ_AU_VENDOR_CLASS Hi, You can make a quirk in usb_quirk.c for this. There is another quirk to force the sample rate to 44100Hz. Also see the other sysctl under hw.usb.uaudio to tune how your device behaves. > # dmesg | grep uaudio0 > uaudio0: on usbus7 > uaudio0: Play: 96000 Hz, 8 ch, 24-bit S-LE PCM format > uaudio0: Record: 96000 Hz, 8 ch, 24-bit S-LE PCM format > uaudio0: MIDI sequencer > pcm4: on uaudio0 > # dmesg | grep uaudio1 > uaudio1: on usbus7 > uaudio1: Play: 96000 Hz, 8 ch, 24-bit S-LE PCM format > uaudio1: Record: 96000 Hz, 8 ch, 24-bit S-LE PCM format > uaudio1: MIDI sequencer > pcm5: on uaudio1 > # cat /dev/sndstat > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: (play/rec) default > pcm1: (play) > pcm2: (play) > pcm3: (play) > pcm4: (play/rec) > pcm5: (play/rec) > > I don't know why two devices are detected, but at least the "96000 Hz, > 8 ch, 24-bit S-LE PCM format" is correct ! What does usbconfig tell about the device? --HPS