summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2001-11-18 06:36:18 +0000
committermarcel <marcel@FreeBSD.org>2001-11-18 06:36:18 +0000
commit639f68486d733378239cdd9310c6a68428870800 (patch)
tree37174c0ca6bd7cc621395216085a15ba3edbc129 /sys/compat
parent8d3576085afd61cbe58000d872b7e1370ce7f471 (diff)
downloadFreeBSD-src-639f68486d733378239cdd9310c6a68428870800.zip
FreeBSD-src-639f68486d733378239cdd9310c6a68428870800.tar.gz
Implement missing SOUND_MIXER_WRITE_RECSRC ioctl.
PR: 22971 Tested by: dougb
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ioctl.c4
-rw-r--r--sys/compat/linux/linux_ioctl.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 4e07abb..4d129fd 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -1106,6 +1106,10 @@ linux_ioctl_sound(struct thread *td, struct linux_ioctl_args *args)
args->cmd = SOUND_MIXER_READ_DEVMASK;
return (ioctl(td, (struct ioctl_args *)args));
+ case LINUX_SOUND_MIXER_WRITE_RECSRC:
+ args->cmd = SETDIR(SOUND_MIXER_WRITE_RECSRC);
+ return (ioctl(td, (struct ioctl_args *)args));
+
case LINUX_SNDCTL_DSP_RESET:
args->cmd = SNDCTL_DSP_RESET;
return (ioctl(td, (struct ioctl_args *)args));
diff --git a/sys/compat/linux/linux_ioctl.h b/sys/compat/linux/linux_ioctl.h
index d63283c..76ded6d 100644
--- a/sys/compat/linux/linux_ioctl.h
+++ b/sys/compat/linux/linux_ioctl.h
@@ -177,6 +177,7 @@
#define LINUX_SOUND_MIXER_WRITE_LINE3 0x4d10
#define LINUX_OSS_GETVERSION 0x4d76
#define LINUX_SOUND_MIXER_READ_DEVMASK 0x4dfe
+#define LINUX_SOUND_MIXER_WRITE_RECSRC 0x4dff
#define LINUX_SNDCTL_DSP_RESET 0x5000
#define LINUX_SNDCTL_DSP_SYNC 0x5001
#define LINUX_SNDCTL_DSP_SPEED 0x5002
OpenPOWER on IntegriCloud