| Kernel v2.4.22-pre10-ac1 /kspd |
|---|
| Filename: | /kspd |
| Lines Added: | 55 |
| Lines Deleted: | 0 |
| Also changed in: |
(Previous) (Following)
2.4.22-rc1-ac1
|
 2.4.22-pre10-ac1
 kspd
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre10/kspd linux.22-pre10-ac1/kspd
--- linux.22-pre10/kspd 1970-01-01 01:00:00.000000000 +0100
+++ linux.22-pre10-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);
+ }
|