patch-1.3.78 linux/drivers/sound/sequencer.c

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

diff -u --recursive --new-file v1.3.77/linux/drivers/sound/sequencer.c linux/drivers/sound/sequencer.c
@@ -1908,12 +1908,12 @@
       cli ();
       if (!iqlen)
 	{
+
 	  midi_sleep_flag.mode = WK_SLEEP;
 	  module_select_wait (&midi_sleeper, wait);
 	  restore_flags (flags);
 	  return 0;
 	}
-      midi_sleep_flag.mode &= ~WK_SLEEP;
       restore_flags (flags);
       return 1;
       break;
@@ -1923,12 +1923,12 @@
       cli ();
       if ((SEQ_MAX_QUEUE - qlen) < output_treshold)
 	{
+
 	  seq_sleep_flag.mode = WK_SLEEP;
 	  module_select_wait (&seq_sleeper, wait);
 	  restore_flags (flags);
 	  return 0;
 	}
-      seq_sleep_flag.mode &= ~WK_SLEEP;
       restore_flags (flags);
       return 1;
       break;

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