patch-1.3.63 linux/drivers/sound/midibuf.c

Next file: linux/drivers/sound/mpu401.c
Previous file: linux/drivers/sound/midi_synth.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.62/linux/drivers/sound/midibuf.c linux/drivers/sound/midibuf.c
@@ -2,8 +2,9 @@
  * sound/midibuf.c
  *
  * Device file manager for /dev/midi#
- *
- * Copyright by Hannu Savolainen 1993
+ */
+/*
+ * Copyright by Hannu Savolainen 1993-1996
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -24,8 +25,9 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- *
  */
+#include <linux/config.h>
+
 
 #include "sound_config.h"
 
@@ -115,7 +117,7 @@
 	if (HZ / 10)
 	  current_set_timeout (tl = jiffies + (HZ / 10));
 	else
-	  tl = 0xffffffff;
+	  tl = (unsigned long) -1;
 	midi_sleep_flag[dev].mode = WK_SLEEP;
 	module_interruptible_sleep_on (&midi_sleeper[dev]);
 	if (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
@@ -305,7 +307,7 @@
 	  if (0)
 	    current_set_timeout (tl = jiffies + (0));
 	  else
-	    tl = 0xffffffff;
+	    tl = (unsigned long) -1;
 	  midi_sleep_flag[dev].mode = WK_SLEEP;
 	  module_interruptible_sleep_on (&midi_sleeper[dev]);
 	  if (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
@@ -337,7 +339,7 @@
 }
 
 int
-MIDIbuf_write (int dev, struct fileinfo *file, const snd_rw_buf * buf, int count)
+MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count)
 {
   unsigned long   flags;
   int             c, n, i;
@@ -368,7 +370,7 @@
 	    if (0)
 	      current_set_timeout (tl = jiffies + (0));
 	    else
-	      tl = 0xffffffff;
+	      tl = (unsigned long) -1;
 	    midi_sleep_flag[dev].mode = WK_SLEEP;
 	    module_interruptible_sleep_on (&midi_sleeper[dev]);
 	    if (!(midi_sleep_flag[dev].mode & WK_WAKEUP))
@@ -405,7 +407,7 @@
 
 
 int
-MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count)
+MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count)
 {
   int             n, c = 0;
   unsigned long   flags;
@@ -427,7 +429,7 @@
 	if (parms[dev].prech_timeout)
 	  current_set_timeout (tl = jiffies + (parms[dev].prech_timeout));
 	else
-	  tl = 0xffffffff;
+	  tl = (unsigned long) -1;
 	input_sleep_flag[dev].mode = WK_SLEEP;
 	module_interruptible_sleep_on (&input_sleeper[dev]);
 	if (!(input_sleep_flag[dev].mode & WK_WAKEUP))
@@ -467,7 +469,7 @@
 
 int
 MIDIbuf_ioctl (int dev, struct fileinfo *file,
-	       unsigned int cmd, ioctl_arg arg)
+	       unsigned int cmd, caddr_t arg)
 {
   int             val;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this