Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.22-rc1-ac1 /kspd

Filename:/kspd
Lines Added:55
Lines Deleted:0
Also changed in: (Previous) 2.4.22-pre10-ac1 
(Following)

Location
[  2.4.22-rc1-ac1
   o  kspd

Patch

diff --exclude-from /usr/src/exclude -u --new-file --recursive linux.22-rc1/kspd linux.22-rc1-ac1/kspd
--- linux.22-rc1/kspd   1970-01-01 01:00:00.000000000 +0100
+++ linux.22-rc1-ac1/kspd   2003-07-29 17:40:21.000000000 +0100
@@ -0,0 +1,55 @@
+--- linux-2.4.21/drivers/sound/cmpci.c-orig
++++ linux-2.4.21/drivers/sound/cmpci.c
+@@ -2194,7 +2545,51 @@ static int cm_ioctl(struct inode *inode,
+    case SNDCTL_DSP_MAPOUTBUF:
+         case SNDCTL_DSP_SETSYNCRO:
+                 return -EINVAL;
+-      
++   case SNDCTL_SPDIF_COPYRIGHT:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdif_copyright(s, val);
++                return 0;
++   case SNDCTL_SPDIF_LOOP:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdif_loop(s, val);
++                return 0;
++   case SNDCTL_SPDIF_MONITOR:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdif_monitor(s, val);
++                return 0;
++   case SNDCTL_SPDIF_LEVEL:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdifout_level(s, val);
++                return 0;
++   case SNDCTL_SPDIF_INV:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdifin_inverse(s, val);
++                return 0;
++   case SNDCTL_SPDIF_SEL2:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdifin_channel2(s, val);
++                return 0;
++   case SNDCTL_SPDIF_VALID:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdifin_valid(s, val);
++                return 0;
++   case SNDCTL_SPDIFOUT:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdifout(s, val ? s->ratedac : 0);
++                return 0;
++   case SNDCTL_SPDIFIN:
++      if (get_user(val, (int *)arg))
++         return -EFAULT;
++      set_spdifin(s, val ? s->rateadc : 0);
++                return 0;
+    }
+    return mixer_ioctl(s, cmd, arg);
+ }


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.