patch-1.3.38 linux/drivers/sound/mpu401.c
Next file: linux/drivers/sound/opl3.c
Previous file: linux/drivers/sound/midibuf.c
Back to the patch index
Back to the overall index
- Lines: 49
- Date:
Tue Nov 7 10:14:17 1995
- Orig file:
v1.3.37/linux/drivers/sound/mpu401.c
- Orig date:
Mon Oct 23 18:02:14 1995
diff -u --recursive --new-file v1.3.37/linux/drivers/sound/mpu401.c linux/drivers/sound/mpu401.c
@@ -41,8 +41,12 @@
#include "coproc.h"
static int init_sequence[20]; /* NOTE! pos 0 = len, start pos 1. */
+
+#ifndef EXCLUDE_SEQUENCER
static int timer_mode = TMR_INTERNAL, timer_caps = TMR_INTERNAL;
+#endif
+
struct mpu_config
{
int base; /*
@@ -112,6 +116,7 @@
static int reset_mpu401 (struct mpu_config *devc);
static void set_uart_mode (int dev, struct mpu_config *devc, int arg);
+
static void mpu_timer_init (int midi_dev);
static void mpu_timer_interrupt (void);
static void timer_ext_event (struct mpu_config *devc, int event, int parm);
@@ -148,6 +153,9 @@
0 /* Fx */
};
+#ifdef EXCLUDE_SEQUENCER
+#define STORE(cmd)
+#else
#define STORE(cmd) \
{ \
int len; \
@@ -155,6 +163,8 @@
cmd; \
seq_input_event(obuf, len); \
}
+#endif
+
#define _seqbuf obuf
#define _seqbufptr 0
#define _SEQ_ADVBUF(x) len=x
@@ -1815,6 +1825,8 @@
}
#endif
+
+
#endif
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