patch-2.3.1 linux/drivers/sound/midibuf.c
Next file: linux/drivers/sound/msnd_pinnacle.c
Previous file: linux/drivers/sound/gus_wave.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Tue May 11 23:40:50 1999
- Orig file:
v2.3.0/linux/drivers/sound/midibuf.c
- Orig date:
Wed Dec 16 12:52:01 1998
diff -u --recursive --new-file v2.3.0/linux/drivers/sound/midibuf.c linux/drivers/sound/midibuf.c
@@ -29,8 +29,8 @@
#define MAX_QUEUE_SIZE 4000
-static struct wait_queue *midi_sleeper[MAX_MIDI_DEV] = {NULL};
-static struct wait_queue *input_sleeper[MAX_MIDI_DEV] = {NULL};
+static wait_queue_head_t midi_sleeper[MAX_MIDI_DEV];
+static wait_queue_head_t input_sleeper[MAX_MIDI_DEV];
struct midi_buf
{
@@ -202,8 +202,8 @@
midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
open_devs++;
- init_waitqueue(&midi_sleeper[dev]);
- init_waitqueue(&input_sleeper[dev]);
+ init_waitqueue_head(&midi_sleeper[dev]);
+ init_waitqueue_head(&input_sleeper[dev]);
if (open_devs < 2) /* This was first open */
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)