[uaudio] M-Audio Fast Track Ultra is not recognized, where to start ?

Hans Petter Selasky hselasky at c2i.net
Wed Jun 15 20:23:37 UTC 2011


On Wednesday 15 June 2011 22:05:17 Olivier Smedts wrote:
> 2011/6/15 Clemens Ladisch <clemens at ladisch.de>:
> > Olivier Smedts wrote:
> >> 2011/6/15 Olivier Smedts <olivier at 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


More information about the freebsd-multimedia mailing list