diff options
author | alfred <alfred@FreeBSD.org> | 1999-11-29 23:03:34 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 1999-11-29 23:03:34 +0000 |
commit | d7ac1dffb8a791374880901d6fe15f1b1e96ef8f (patch) | |
tree | 9ae1b8aed7b1b35c17b02f9cba9c90dc26bbeb90 | |
parent | 45fc07fd1e5bebf1b658751b681e4491d4b26585 (diff) | |
download | FreeBSD-src-d7ac1dffb8a791374880901d6fe15f1b1e96ef8f.zip FreeBSD-src-d7ac1dffb8a791374880901d6fe15f1b1e96ef8f.tar.gz |
add linuxulator wrapper for SNDCTL_DSP_GETODELAY
-rw-r--r-- | sys/alpha/linux/linux.h | 1 | ||||
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 4 | ||||
-rw-r--r-- | sys/i386/linux/linux.h | 1 | ||||
-rw-r--r-- | sys/i386/linux/linux_ioctl.c | 4 |
4 files changed, 10 insertions, 0 deletions
diff --git a/sys/alpha/linux/linux.h b/sys/alpha/linux/linux.h index f581314..5499abd 100644 --- a/sys/alpha/linux/linux.h +++ b/sys/alpha/linux/linux.h @@ -606,6 +606,7 @@ struct linux_new_utsname { #define LINUX_SNDCTL_DSP_SETTRIGGER 0x5010 #define LINUX_SNDCTL_DSP_GETIPTR 0x5011 #define LINUX_SNDCTL_DSP_GETOPTR 0x5012 +#define LINUX_SNDCTL_DSP_GETODELAY 0x5017 #define LINUX_SOUND_MIXER_WRITE_VOLUME 0x4d00 #define LINUX_SOUND_MIXER_WRITE_BASS 0x4d01 #define LINUX_SOUND_MIXER_WRITE_TREBLE 0x4d02 diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 0729be1..64fa513 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -900,6 +900,10 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args) args->cmd = SNDCTL_DSP_GETBLKSIZE; return ioctl(p, (struct ioctl_args *)args); + case LINUX_SNDCTL_DSP_GETODELAY: + args->cmd = SNDCTL_DSP_GETODELAY; + return ioctl(p, (struct ioctl_args *)args); + case LINUX_SNDCTL_DSP_SETFMT: args->cmd = SNDCTL_DSP_SETFMT; return ioctl(p, (struct ioctl_args *)args); diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index f581314..5499abd 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -606,6 +606,7 @@ struct linux_new_utsname { #define LINUX_SNDCTL_DSP_SETTRIGGER 0x5010 #define LINUX_SNDCTL_DSP_GETIPTR 0x5011 #define LINUX_SNDCTL_DSP_GETOPTR 0x5012 +#define LINUX_SNDCTL_DSP_GETODELAY 0x5017 #define LINUX_SOUND_MIXER_WRITE_VOLUME 0x4d00 #define LINUX_SOUND_MIXER_WRITE_BASS 0x4d01 #define LINUX_SOUND_MIXER_WRITE_TREBLE 0x4d02 diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c index 0729be1..64fa513 100644 --- a/sys/i386/linux/linux_ioctl.c +++ b/sys/i386/linux/linux_ioctl.c @@ -900,6 +900,10 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args) args->cmd = SNDCTL_DSP_GETBLKSIZE; return ioctl(p, (struct ioctl_args *)args); + case LINUX_SNDCTL_DSP_GETODELAY: + args->cmd = SNDCTL_DSP_GETODELAY; + return ioctl(p, (struct ioctl_args *)args); + case LINUX_SNDCTL_DSP_SETFMT: args->cmd = SNDCTL_DSP_SETFMT; return ioctl(p, (struct ioctl_args *)args); |