Skip to contentSkip to conversation

drivers/sound/esssolo1.c glitch?!

PATCH New Andreas Bauer 1 participant 1 message Jul 31, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/sound/esssolo1.c glitch?!

Hello Thomas, (and kernel list)

When I tried to compile 2.4.7 today with support for my ESS Techn. ES 1988
Allegro-1 sound card, the linker came up with a few errors concerning undefined function references in sounddrivers.o

Therefore I modified your file drivers/sound/esssolo1.c slightly in order
to resolve these reference problems. Please find my modifications as attachment to this e-mail. It's only a few lines and I hope you as well as others consider them a useful contribution anyway.

I'd be grateful to hear some feedback on this.

- Andreas

esssolo1.c renamed from esssolo1.ORIGINAL +17 -0
@@ -82,6 +82,9 @@
  *    22.05.2001   0.19  more cleanups, changed PM to PCI 2.4 style, got rid
  *                       of global list of devices, using pci device data.
  *                       Marcus Meissner <[email protected]>
+ *    28.07.2001   0.20  Added definitions for external functions
+ *                       gameport_register_port, gameport_unregister_port
+ *                       Andreas Bauer <[email protected]>
  */
 
 /*****************************************************************************/
@@ -106,7 +109,21 @@
 #include <linux/wrapper.h>
 #include <asm/uaccess.h>
 #include <asm/hardirq.h>
+
+#if defined(CONFIG_INPUT_ANALOG) || defined(CONFIG_INPUT_ANALOG_MODULE)
 #include <linux/gameport.h>
+#else
+struct gameport {
+	int io;
+	int size;
+};
+ 
+extern inline void gameport_register_port(struct gameport *gameport) {
+}
+ 
+extern inline void gameport_unregister_port(struct gameport *gameport) {
+}
+#endif
 
 #include "dm.h"