Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jun 2011 22:22:08 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Olivier Smedts <olivier@gid0.org>
Cc:        freebsd-multimedia@freebsd.org, Clemens Ladisch <clemens@ladisch.de>
Subject:   Re: [uaudio] M-Audio Fast Track Ultra is not recognized, where to start ?
Message-ID:  <201106152222.08318.hselasky@c2i.net>
In-Reply-To: <BANLkTikky09rGqhTZ8QyHycFcJk-=73JWA@mail.gmail.com>
References:  <BANLkTimXnhsxem2rUtieMO0c8b%2B-gAgunQ@mail.gmail.com> <4DF87676.1090303@ladisch.de> <BANLkTikky09rGqhTZ8QyHycFcJk-=73JWA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 15 June 2011 22:05:17 Olivier Smedts wrote:
> 2011/6/15 Clemens Ladisch <clemens@ladisch.de>:
> > Olivier Smedts wrote:
> >> 2011/6/15 Olivier Smedts <olivier@gid0.org>:
> >> > 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: <Fast Track Ultra> 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: <USB audio> on uaudio0
> # dmesg | grep uaudio1
> uaudio1: <M-Audio DFU> 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: <USB audio> on uaudio1
> # cat /dev/sndstat
> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
> Installed devices:
> pcm0: <HDA Analog Devices AD1989B PCM #0 Analog> (play/rec) default
> pcm1: <HDA Analog Devices AD1989B PCM #1 Analog> (play)
> pcm2: <HDA Analog Devices AD1989B PCM #2 Digital> (play)
> pcm3: <HDA Analog Devices AD1989B PCM #3 Digital> (play)
> pcm4: <USB audio> (play/rec)
> pcm5: <USB audio> (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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106152222.08318.hselasky>