]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add uaudio -- a USB audio device driver.
authornsayer <nsayer@FreeBSD.org>
Sun, 21 Jul 2002 17:28:50 +0000 (17:28 +0000)
committernsayer <nsayer@FreeBSD.org>
Sun, 21 Jul 2002 17:28:50 +0000 (17:28 +0000)
commit25022332651db553076ec3b7404f57f158c9967c
tree2c415cdeffaee4bbbc5bd63b47ecdfb14bbf9b0c
parentb9937742c3d6160f131a6a6ffebc71fdb2e351aa
Add uaudio -- a USB audio device driver.

This driver actually works slightly better on -stable than on -current
(the system locks on detach on -current), so it should be MFC'd somewhat
sooner.

This driver currently points out a difficulty in the sound device framework.
The PCM unregister routine is allowed to refuse the detach if the device is
in use. In the case of a USB device, however, this unregistration is much more
mandatory in nature, since the device is *actually* gone when this call is
made. The sound subsystem really should not refuse an unregistration and
should take its own steps to reject further I/O. As a result, if you detach
a USB sound device while it is in use, you can expect a panic shortly
thereafter.

This device cannot currently record audio. Some routines are unwritten as
of yet in uaudio.c to support recording.

This device hangs my -current box on detach. I don't know why. This does
not happen on my -stable machine.

Obtained from: Hiroyuki Aizu
MFC after: 2 weeks
sys/conf/files
sys/dev/sound/usb/uaudio.c [new file with mode: 0644]
sys/dev/sound/usb/uaudio.h [new file with mode: 0644]
sys/dev/sound/usb/uaudio_pcm.c [new file with mode: 0644]
sys/dev/sound/usb/uaudioreg.h [new file with mode: 0644]
sys/modules/sound/driver/Makefile
sys/modules/sound/driver/uaudio/Makefile [new file with mode: 0644]