diff options
author | joerg <joerg@FreeBSD.org> | 1996-07-17 20:18:56 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-07-17 20:18:56 +0000 |
commit | 80ad4711dc34c2dc8d9a19118ec0d0c3fadbc59c (patch) | |
tree | 410b4da9a1ab5c0e4739c2f884c729772ad9b328 /sys | |
parent | 252afb2d7b14bc4581ed3b60a057351902dafda4 (diff) | |
download | FreeBSD-src-80ad4711dc34c2dc8d9a19118ec0d0c3fadbc59c.zip FreeBSD-src-80ad4711dc34c2dc8d9a19118ec0d0c3fadbc59c.tar.gz |
Introduce two /dev/audio compat alias names for flushing and draining
the pcaudio device. Now, XBoing sounds much better...
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/include/pcaudioio.h | 6 | ||||
-rw-r--r-- | sys/i386/isa/pcaudio.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/i386/include/pcaudioio.h b/sys/i386/include/pcaudioio.h index 0143deb..b2b79c8 100644 --- a/sys/i386/include/pcaudioio.h +++ b/sys/i386/include/pcaudioio.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcaudioio.h,v 1.4 1995/05/30 08:00:44 rgrimes Exp $ + * $Id: pcaudioio.h,v 1.5 1996/01/30 22:54:42 mpp Exp $ */ #ifndef _PCAUDIOIO_H_ @@ -73,4 +73,8 @@ typedef struct audio_info { #define AUDIO_DRAIN _IO('A', 3) #define AUDIO_FLUSH _IO('A', 4) +/* compatibility to /dev/audio */ +#define AUDIO_COMPAT_DRAIN _IO('P', 1) +#define AUDIO_COMPAT_FLUSH _IO('P', 0) + #endif /*!_PCAUDIOIO_H*/ diff --git a/sys/i386/isa/pcaudio.c b/sys/i386/isa/pcaudio.c index 6b31817..22c48c0 100644 --- a/sys/i386/isa/pcaudio.c +++ b/sys/i386/isa/pcaudio.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcaudio.c,v 1.27 1996/03/28 14:28:47 scrappy Exp $ + * $Id: pcaudio.c,v 1.28 1996/06/09 14:23:13 joerg Exp $ */ #include "pca.h" @@ -444,9 +444,11 @@ pcaioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) return 0; case AUDIO_DRAIN: + case AUDIO_COMPAT_DRAIN: return pca_wait(); case AUDIO_FLUSH: + case AUDIO_COMPAT_FLUSH: pca_stop(); return 0; |