diff options
author | bms <bms@FreeBSD.org> | 2004-06-18 14:36:24 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-06-18 14:36:24 +0000 |
commit | 0cef2f91c1e7e9a26ccfabb2141ec7e990c3f183 (patch) | |
tree | 2c2e85232cda72474042a43cae9285f6ff4ad691 | |
parent | bf763fabc7aec0c75095cf8c0ff1b2e00cdf2274 (diff) | |
download | FreeBSD-src-0cef2f91c1e7e9a26ccfabb2141ec7e990c3f183.zip FreeBSD-src-0cef2f91c1e7e9a26ccfabb2141ec7e990c3f183.tar.gz |
Add stub for Linux SOUND_MIXER_READ_RECMASK, required by some Linux sound
applications.
PR: misc/27471
Submitted by: Gavin Atkinson (with cleanups)
-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 316fceb..867a13a 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -1711,6 +1711,10 @@ linux_ioctl_sound(struct thread *td, struct linux_ioctl_args *args) args->cmd = SOUND_MIXER_READ_STEREODEVS; return (ioctl(td, (struct ioctl_args *)args)); + case LINUX_SOUND_MIXER_READ_RECMASK: + args->cmd = SOUND_MIXER_READ_RECMASK; + return (ioctl(td, (struct ioctl_args *)args)); + case LINUX_SOUND_MIXER_READ_DEVMASK: args->cmd = SOUND_MIXER_READ_DEVMASK; return (ioctl(td, (struct ioctl_args *)args)); diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h index a2ec0e9..af1aac7 100644 --- a/sys/compat/linux/linux_ioctl.h +++ b/sys/compat/linux/linux_ioctl.h @@ -230,6 +230,7 @@ #define LINUX_SOUND_MIXER_INFO 0x4d65 #define LINUX_OSS_GETVERSION 0x4d76 #define LINUX_SOUND_MIXER_READ_STEREODEVS 0x4dfb +#define LINUX_SOUND_MIXER_READ_RECMASK 0x4dfd #define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe #define LINUX_SOUND_MIXER_WRITE_RECSRC 0x4dff #define LINUX_SNDCTL_DSP_RESET 0x5000 |