From 2fb0e45c66a441469e1b451b7fb3ec9753f1e65d Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 21 Jan 2006 17:40:00 +0000 Subject: add support for SNDCTL_DSP_SETDUPLEX ioctl From NetBSD in PR 4984 --- sys/compat/ossaudio/ossaudio.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/compat/ossaudio/ossaudio.c') 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; -- cgit v1.2.3