summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorsmpatel <smpatel@FreeBSD.org>1996-11-05 02:04:37 +0000
committersmpatel <smpatel@FreeBSD.org>1996-11-05 02:04:37 +0000
commit216fc55e6b7e92bd53156df727cfc4efa4b70c55 (patch)
tree0316aa99c801956874680f5c920f65cb31948c77 /sys/compat
parentff98acfec90d368b9d6b2fed18b2dbb0f9dd03b5 (diff)
downloadFreeBSD-src-216fc55e6b7e92bd53156df727cfc4efa4b70c55.zip
FreeBSD-src-216fc55e6b7e92bd53156df727cfc4efa4b70c55.tar.gz
Add audio mixer ioctls.
Only writing to the mixer is implemented.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ioctl.c74
1 files changed, 73 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 90a14b5..e4d8f66 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -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.10 1996/06/12 05:06:27 gpalmer Exp $
+ * $Id: linux_ioctl.c,v 1.11 1996/06/23 17:08:11 bde Exp $
*/
#include <sys/param.h>
@@ -691,6 +691,78 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args, int *retval)
args->cmd = SNDCTL_DSP_NONBLOCK;
return ioctl(p, (struct ioctl_args *)args, retval);
+ case LINUX_SOUND_MIXER_WRITE_VOLUME:
+ args->cmd = SOUND_MIXER_WRITE_VOLUME;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_BASS:
+ args->cmd = SOUND_MIXER_WRITE_BASS;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_TREBLE:
+ args->cmd = SOUND_MIXER_WRITE_TREBLE;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_SYNTH:
+ args->cmd = SOUND_MIXER_WRITE_SYNTH;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_PCM:
+ args->cmd = SOUND_MIXER_WRITE_PCM;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_SPEAKER:
+ args->cmd = SOUND_MIXER_WRITE_SPEAKER;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_LINE:
+ args->cmd = SOUND_MIXER_WRITE_LINE;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_MIC:
+ args->cmd = SOUND_MIXER_WRITE_MIC;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_CD:
+ args->cmd = SOUND_MIXER_WRITE_CD;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_IMIX:
+ args->cmd = SOUND_MIXER_WRITE_IMIX;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_ALTPCM:
+ args->cmd = SOUND_MIXER_WRITE_ALTPCM;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_RECLEV:
+ args->cmd = SOUND_MIXER_WRITE_RECLEV;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_IGAIN:
+ args->cmd = SOUND_MIXER_WRITE_IGAIN;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_OGAIN:
+ args->cmd = SOUND_MIXER_WRITE_OGAIN;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_LINE1:
+ args->cmd = SOUND_MIXER_WRITE_LINE1;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_LINE2:
+ args->cmd = SOUND_MIXER_WRITE_LINE2;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_WRITE_LINE3:
+ args->cmd = SOUND_MIXER_WRITE_LINE3;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
+ case LINUX_SOUND_MIXER_READ_DEVMASK:
+ args->cmd = SOUND_MIXER_READ_DEVMASK;
+ return ioctl(p, (struct ioctl_args *)args, retval);
+
case LINUX_TIOCGSERIAL:
linux_tiocgserial(fp, (struct linux_serial_struct *)args->arg);
return 0;
OpenPOWER on IntegriCloud