patch-1.3.58 linux/drivers/sound/uart6850.c
Next file: linux/drivers/sound/ulaw.h
Previous file: linux/drivers/sound/trix.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Tue Jan 9 00:37:44 1996
- Orig file:
v1.3.57/linux/drivers/sound/uart6850.c
- Orig date:
Fri Oct 13 14:44:44 1995
diff -u --recursive --new-file v1.3.57/linux/drivers/sound/uart6850.c linux/drivers/sound/uart6850.c
@@ -30,9 +30,7 @@
#include "sound_config.h"
-#ifdef CONFIGURE_SOUNDCARD
-
-#if !defined(EXCLUDE_UART6850) && !defined(EXCLUDE_MIDI)
+#if defined(CONFIG_UART6850) && defined(CONFIG_MIDI)
#define DATAPORT (uart6850_base) /*
* * * Midi6850 Data I/O Port on IBM
@@ -117,9 +115,7 @@
unsigned long flags;
if (!(uart6850_opened & OPEN_READ))
- return; /*
- * No longer required
- */
+ return; /* Device has been closed */
save_flags (flags);
cli ();
@@ -150,6 +146,7 @@
return -EBUSY;
}
+ ;
uart6850_cmd (UART_RESET);
uart6850_input_loop ();
@@ -298,7 +295,7 @@
restore_flags (flags);
- printk (" <6850 Midi Interface>");
+ conf_printf ("6850 Midi Interface", hw_config);
std_midi_synth.midi_dev = my_dev = num_midis;
midi_devs[num_midis++] = &uart6850_operations;
@@ -338,7 +335,5 @@
{
snd_release_irq (hw_config->irq);
}
-
-#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