patch-2.1.63 linux/drivers/sound/midi_synth.c
Next file: linux/drivers/sound/midibuf.c
Previous file: linux/drivers/sound/maui.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
Tue Sep 30 08:46:52 1997
- Orig file:
v2.1.62/linux/drivers/sound/midi_synth.c
- Orig date:
Wed Sep 24 20:05:47 1997
diff -u --recursive --new-file v2.1.62/linux/drivers/sound/midi_synth.c linux/drivers/sound/midi_synth.c
@@ -18,7 +18,7 @@
#include "sound_config.h"
-#if defined(CONFIG_MIDI)
+#ifdef CONFIG_MIDI
#define _MIDI_SYNTH_C_
@@ -89,7 +89,7 @@
break;
default:
- /* printk ("MPU: Unknown midi channel message %02x\n", msg[0]); */
+ /* printk( "MPU: Unknown midi channel message %02x\n", msg[0]); */
;
}
}
@@ -231,8 +231,7 @@
break; /* MST_SYSEX */
default:
- printk ("MIDI%d: Unexpected state %d (%02x)\n", orig_dev, inc->m_state,
- (int) data);
+ printk ("MIDI%d: Unexpected state %d (%02x)\n", orig_dev, inc->m_state, (int) data);
inc->m_state = MST_INIT;
}
}
@@ -523,8 +522,7 @@
if (count < sysex.len)
{
- printk ("MIDI Warning: Sysex record too short (%d<%d)\n",
- count, (int) sysex.len);
+ printk ("MIDI Warning: Sysex record too short (%d<%d)\n", count, (int) sysex.len);
sysex.len = count;
}
@@ -533,7 +531,7 @@
sysex_sleep_flag.opts = WK_NONE;
- for (i = 0; i < left && !signal_pending(current); i++)
+ for (i = 0; i < left && !(current->signal & ~current->blocked); i++)
{
unsigned char data;
@@ -554,7 +552,7 @@
}
while (!midi_devs[orig_dev]->outputc (orig_dev, (unsigned char) (data & 0xff)) &&
- !signal_pending(current))
+ !(current->signal & ~current->blocked))
{
unsigned long tlimit;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov