diff options
author | bms <bms@FreeBSD.org> | 2004-06-18 14:25:44 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-06-18 14:25:44 +0000 |
commit | f2d71bff495ceecf24f46a6df7ccc8abd73a92b4 (patch) | |
tree | 29e3ada14569354183d5378ba0dd34b3527940cc | |
parent | c99430ca9d7450c96cd1dbded61980cc700c8b05 (diff) | |
download | FreeBSD-src-f2d71bff495ceecf24f46a6df7ccc8abd73a92b4.zip FreeBSD-src-f2d71bff495ceecf24f46a6df7ccc8abd73a92b4.tar.gz |
Add a stub for the Linux SOUND_MIXER_INFO ioctl (even though we don't
actually implement it), as some applications, such as RealProducer,
expect to be able to use it.
PR: kern/65971
Submitted by: Matt Wright
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 4 | ||||
-rw-r--r-- | sys/compat/linux/linux_ioctl.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 9f8c956..316fceb 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1698,6 +1698,10 @@ linux_ioctl_sound(struct thread *td, struct linux_ioctl_args *args) args->cmd = SETDIR(SOUND_MIXER_WRITE_LINE3); return (ioctl(td, (struct ioctl_args *)args)); + case LINUX_SOUND_MIXER_INFO: + args->cmd = SETDIR(SOUND_MIXER_INFO); + return (ioctl(td, (struct ioctl_args *)args)); + case LINUX_OSS_GETVERSION: { int version = linux_get_oss_version(td); return (copyout(&version, (void *)args->arg, sizeof(int))); diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index 192e428..a2ec0e9 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -227,6 +227,7 @@ #define LINUX_SOUND_MIXER_WRITE_LINE1 0x4d0E #define LINUX_SOUND_MIXER_WRITE_LINE2 0x4d0F #define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10 +#define LINUX_SOUND_MIXER_INFO 0x4d65 #define LINUX_OSS_GETVERSION 0x4d76 #define LINUX_SOUND_MIXER_READ_STEREODEVS 0x4dfb #define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe |