svn commit: r274056 - stable/8/sys/compat/linux

Alexander Motin mav at FreeBSD.org
Mon Nov 3 17:37:50 UTC 2014


Author: mav
Date: Mon Nov  3 17:37:49 2014
New Revision: 274056
URL: https://svnweb.freebsd.org/changeset/base/274056

Log:
  MFC r272059:
  Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.
  
  Submitted by:	Dmitry Luhtionov <dmitryluhtionov at gmail.com>

Modified:
  stable/8/sys/compat/linux/linux_ioctl.c
Directory Properties:
  stable/8/   (props changed)
  stable/8/sys/   (props changed)
  stable/8/sys/compat/   (props changed)

Modified: stable/8/sys/compat/linux/linux_ioctl.c
==============================================================================
--- stable/8/sys/compat/linux/linux_ioctl.c	Mon Nov  3 16:57:01 2014	(r274055)
+++ stable/8/sys/compat/linux/linux_ioctl.c	Mon Nov  3 17:37:49 2014	(r274056)
@@ -1658,13 +1658,6 @@ linux_ioctl_vfat(struct thread *td, stru
  * Sound related ioctls
  */
 
-struct linux_mixer_info {
-	char	id[16];
-	char	name[32];
-	int	modify_counter;
-	int	fillers[10];
-};
-
 struct linux_old_mixer_info {
 	char	id[16];
 	char	name[32];
@@ -1752,12 +1745,8 @@ linux_ioctl_sound(struct thread *td, str
 		/* Key on encoded length */
 		switch ((args->cmd >> 16) & 0x1fff) {
 		case 0x005c: {	/* SOUND_MIXER_INFO */
-			struct linux_mixer_info info;
-			bzero(&info, sizeof(info));
-			strncpy(info.id, "OSS", sizeof(info.id) - 1);
-			strncpy(info.name, "FreeBSD OSS Mixer", sizeof(info.name) - 1);
-			copyout(&info, (void *)args->arg, sizeof(info));
-			return (0);
+			args->cmd = SOUND_MIXER_INFO;
+			return (sys_ioctl(td, (struct ioctl_args *)args));
 		}
 		case 0x0030: {	/* SOUND_OLD_MIXER_INFO */
 			struct linux_old_mixer_info info;


More information about the svn-src-all mailing list