From owner-freebsd-multimedia@FreeBSD.ORG Thu Jun 23 03:06:49 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 4A832106564A for ; Thu, 23 Jun 2011 03:06:49 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 19B5E8FC18 for ; Thu, 23 Jun 2011 03:06:48 +0000 (UTC) Received: by pzk27 with SMTP id 27so1217299pzk.13 for ; Wed, 22 Jun 2011 20:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Ul39JcX5b9vN3x8MhvDpUWi80Fq80/U/x3rXr/rQtLw=; b=OgY5SRMJp6KaN5qEfC9OpAfteVY/Ea8I8qMvP/6X+FHx+Bx5aa6SLiaEUtVQJhZEm3 ujR9DNUTuPRmnhynsDY5lJyxV15wMRYurit6pV4ixKGG/phXCUMdaGxbpDRdT36tBK7N LfYbHPWOeqE8AGwKiIAhhzGUMR3XvVmeJO3CA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=my/ZFCWOuNC+VNun9Yg2yCpGgCanuK1lI4c35UrH2z6gGEP9NTlIuLCLzOWhJ5KvjR +xvhRIQFqznc4001S2hz1mRqbz/Zii55maJHmLZpo8mYSSWuYnqSETWBottrJwSNn3/m XpmbM8TSO0hYmAvJ3SWuPx88+kx5aB8sQOZiY= MIME-Version: 1.0 Received: by 10.68.31.33 with SMTP id x1mr804130pbh.381.1308796786857; Wed, 22 Jun 2011 19:39:46 -0700 (PDT) Received: by 10.68.60.73 with HTTP; Wed, 22 Jun 2011 19:39:46 -0700 (PDT) In-Reply-To: <201106152222.08318.hselasky@c2i.net> References: <4DF87676.1090303@ladisch.de> <201106152222.08318.hselasky@c2i.net> Date: Wed, 22 Jun 2011 23:39:46 -0300 Message-ID: From: Marcel Bonnet To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Thu, 23 Jun 2011 03:06:49 -0000 On 15 June 2011 17:22, Hans Petter Selasky wrote: > 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=3D1 > > # 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 > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to " > freebsd-multimedia-unsubscribe@freebsd.org" > Hello, folks. I'm far away of being an expert, but if I understood something, I hope this can help: Well, Olivier, I'm probably the one who wrote the notes about the Fast Trac= k Pro you told. So, as Hans Petter said, there is a quirck to set the frequency to 44100. I'm not using tha quirck yet, but using hw.usb.uaudio.default_rate=3D44100 on my /boot/loader.conf solved the probl= em by now. I made some tests with jack, as simple as $ jackd -r -d oss And recorded with 2 channels in Ardour, without any problem. I can't remember how (probably with a qjackctl or ardour option, some day) I recorded at 48000 Hz (using hw.usb.uaudio.default_rate=3D44100). I hope you M-Audio works well. Thanks to Hans Petter, BTW. --=20 Marcel Bonnet *"No princ=EDpio era o caos... e no meio tamb=E9m."* [m=FAsica ] www.monovox.net.br [m=FAsica ] twitter.com/mono_vox [m=FAsica ] http://soundcloud.com/monovox [qq coisa] twitter.com/marbonfly [Best OS] freebsd.org