summaryrefslogtreecommitdiff
path: root/sys/compat/ossaudio/ossaudio.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-01-21 17:40:00 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-01-21 17:40:00 +0000
commit2fb0e45c66a441469e1b451b7fb3ec9753f1e65d (patch)
treeac5513cc0edec6c3e16bc81577f4069303da3ea1 /sys/compat/ossaudio/ossaudio.c
parentbefd3c0b490da930d3a13e3bece6f1094472dfa9 (diff)
add support for SNDCTL_DSP_SETDUPLEX ioctl
From NetBSD in PR 4984
Diffstat (limited to 'sys/compat/ossaudio/ossaudio.c')
-rw-r--r--sys/compat/ossaudio/ossaudio.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/compat/ossaudio/ossaudio.c b/sys/compat/ossaudio/ossaudio.c
index b978de2856a..b1fed92335c 100644
--- a/sys/compat/ossaudio/ossaudio.c
+++ b/sys/compat/ossaudio/ossaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ossaudio.c,v 1.8 2002/03/14 01:26:50 millert Exp $ */
+/* $OpenBSD: ossaudio.c,v 1.9 2006/01/21 17:39:59 brad Exp $ */
/* $NetBSD: ossaudio.c,v 1.23 1997/10/19 07:41:52 augustss Exp $ */
/*
@@ -499,10 +499,13 @@ oss_ioctl_audio(p, uap, retval)
if (error)
goto out;
break;
+ case OSS_SNDCTL_DSP_SETDUPLEX:
+ idat = 1;
+ error = ioctlf(fp, AUDIO_SETFD, (caddr_t)&idat, p);
+ goto out;
case OSS_SNDCTL_DSP_MAPINBUF:
case OSS_SNDCTL_DSP_MAPOUTBUF:
case OSS_SNDCTL_DSP_SETSYNCRO:
- case OSS_SNDCTL_DSP_SETDUPLEX:
case OSS_SNDCTL_DSP_PROFILE:
error = EINVAL; /* XXX unimplemented */
goto out;