diff options
author | nsayer <nsayer@FreeBSD.org> | 2002-07-21 17:28:50 +0000 |
---|---|---|
committer | nsayer <nsayer@FreeBSD.org> | 2002-07-21 17:28:50 +0000 |
commit | 25022332651db553076ec3b7404f57f158c9967c (patch) | |
tree | 2c415cdeffaee4bbbc5bd63b47ecdfb14bbf9b0c /sys/modules/sound | |
parent | b9937742c3d6160f131a6a6ffebc71fdb2e351aa (diff) | |
download | FreeBSD-src-25022332651db553076ec3b7404f57f158c9967c.zip FreeBSD-src-25022332651db553076ec3b7404f57f158c9967c.tar.gz |
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
Diffstat (limited to 'sys/modules/sound')
-rw-r--r-- | sys/modules/sound/driver/Makefile | 2 | ||||
-rw-r--r-- | sys/modules/sound/driver/uaudio/Makefile | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile index 4e71f46..fb748ba 100644 --- a/sys/modules/sound/driver/Makefile +++ b/sys/modules/sound/driver/Makefile @@ -3,6 +3,6 @@ SUBDIR = als4000 ad1816 cmi cs4281 csa ds1 emu10k1 es137x ess SUBDIR += fm801 ich maestro maestro3 mss neomagic sb16 sb8 sbc solo SUBDIR += t4dwave via82c686 vibes -SUBDIR += driver +SUBDIR += driver uaudio .include <bsd.subdir.mk> diff --git a/sys/modules/sound/driver/uaudio/Makefile b/sys/modules/sound/driver/uaudio/Makefile new file mode 100644 index 0000000..f04d883 --- /dev/null +++ b/sys/modules/sound/driver/uaudio/Makefile @@ -0,0 +1,9 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../../../dev/sound/usb + +KMOD= snd_uaudio +SRCS= device_if.h bus_if.h opt_usb.h vnode_if.h isa_if.h +SRCS+= uaudio.c uaudio_pcm.c + +.include <bsd.kmod.mk> |