From d807a231a2c7d5468beff1e55fdc043acf302a0f Mon Sep 17 00:00:00 2001 From: Nick Sayer Date: Sun, 21 Jul 2002 17:28:50 +0000 Subject: 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/modules/sound/driver/Makefile | 2 +- sys/modules/sound/driver/uaudio/Makefile | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 sys/modules/sound/driver/uaudio/Makefile (limited to 'sys/modules') diff --git a/sys/modules/sound/driver/Makefile b/sys/modules/sound/driver/Makefile index 4e71f46c52584..fb748ba6e72ed 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 diff --git a/sys/modules/sound/driver/uaudio/Makefile b/sys/modules/sound/driver/uaudio/Makefile new file mode 100644 index 0000000000000..f04d883739caf --- /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 -- cgit v1.3