From owner-cvs-all Sun Jul 21 10:28:58 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5721937B401; Sun, 21 Jul 2002 10:28:51 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1018143E31; Sun, 21 Jul 2002 10:28:51 -0700 (PDT) (envelope-from nsayer@FreeBSD.org) Received: from freefall.freebsd.org (nsayer@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6LHSoJU014017; Sun, 21 Jul 2002 10:28:50 -0700 (PDT) (envelope-from nsayer@freefall.freebsd.org) Received: (from nsayer@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6LHSo9V014016; Sun, 21 Jul 2002 10:28:50 -0700 (PDT) Message-Id: <200207211728.g6LHSo9V014016@freefall.freebsd.org> From: Nick Sayer Date: Sun, 21 Jul 2002 10:28:50 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf files src/sys/modules/sound/driver Makefile src/sys/modules/sound/driver/uaudio Makefile src/sys/dev/sound/usb uaudio.c uaudio.h uaudio_pcm.c uaudioreg.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG nsayer 2002/07/21 10:28:50 PDT Modified files: sys/conf files sys/modules/sound/driver Makefile Added files: sys/modules/sound/driver/uaudio Makefile sys/dev/sound/usb uaudio.c uaudio.h uaudio_pcm.c uaudioreg.h Log: 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 Revision Changes Path 1.668 +2 -0 src/sys/conf/files 1.1 +2912 -0 src/sys/dev/sound/usb/uaudio.c (new) 1.1 +49 -0 src/sys/dev/sound/usb/uaudio.h (new) 1.1 +375 -0 src/sys/dev/sound/usb/uaudio_pcm.c (new) 1.1 +384 -0 src/sys/dev/sound/usb/uaudioreg.h (new) 1.14 +1 -1 src/sys/modules/sound/driver/Makefile 1.1 +9 -0 src/sys/modules/sound/driver/uaudio/Makefile (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message