diff options
author | Amancio Hasty <ahasty@FreeBSD.org> | 1997-11-17 04:00:32 +0000 |
---|---|---|
committer | Amancio Hasty <ahasty@FreeBSD.org> | 1997-11-17 04:00:32 +0000 |
commit | 53eaeb96ba1722b3a0d30ba3586be4a9227c2615 (patch) | |
tree | 83903698c8a03ef092bba4b4a964701e36a1b877 /sys/compat/linux/linux_ioctl.c | |
parent | 39f94eddcdf0ea6f060779b9f00080d39eaa0ff3 (diff) | |
download | src-53eaeb96ba1722b3a0d30ba3586be4a9227c2615.tar.gz src-53eaeb96ba1722b3a0d30ba3586be4a9227c2615.zip |
Added support for linux sound ioctls:
LINUX_SNDCTL_DSP_GETOPTR
LINUX_SNDCTL_DSP_GETIPTR
LINUX_SNDCTL_DSP_SETTRIGGER
LINUX_SNDCTL_DSP_GETCAPS
With this rev level the linux realaudio player 5 and xquake should work.
Notes
Notes:
svn path=/head/; revision=31198
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 69931448d51f..aa9e84433a99 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1,4 +1,4 @@ -/*- +/* * Copyright (c) 1994-1995 Søren Schmidt * All rights reserved. * @@ -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: linux_ioctl.c,v 1.20 1997/07/20 16:05:59 bde Exp $ + * $Id: linux_ioctl.c,v 1.21 1997/11/06 19:28:55 phk Exp $ */ #include <sys/param.h> @@ -662,6 +662,22 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args) return copyout(&linux_line, (caddr_t)args->arg, sizeof(int)); + case LINUX_SNDCTL_DSP_GETOPTR : + args->cmd = SNDCTL_DSP_GETOPTR; + return ioctl(p, (struct ioctl_args *)args); + + case LINUX_SNDCTL_DSP_GETIPTR : + args->cmd = SNDCTL_DSP_GETIPTR; + return ioctl(p, (struct ioctl_args *)args); + + case LINUX_SNDCTL_DSP_SETTRIGGER: + args->cmd = SNDCTL_DSP_SETTRIGGER; + return ioctl(p, (struct ioctl_args *)args); + + case LINUX_SNDCTL_DSP_GETCAPS: + args->cmd = SNDCTL_DSP_GETCAPS; + return ioctl(p, (struct ioctl_args *)args); + case LINUX_SNDCTL_DSP_RESET: args->cmd = SNDCTL_DSP_RESET; return ioctl(p, (struct ioctl_args *)args); |