Linux 1.1.82

Garner Halloran kheldar at cc.gatech.edu
Wed Jan 18 13:15:38 EST 1995


I'm on the KERNEL mailing list and the following is the patch to get the
sound driver to compile.

------
The sound drivers in .82 don't compile correctly....you need the 
following patch to make em work (note that this might not even work, i 
haven't tested them yet -- linus)

>From torvalds at linux.Helsinki.FI Mon Jan 16 06:16:25 1995
Date: Mon, 16 Jan 1995 15:58:09 +0200
 From: Linus Torvalds <torvalds at linux.Helsinki.FI>
To: root at renegade.cts.com
Subject: sound diver test-patch

diff -u --recursive /usr/src/v1.1.82/linux/drivers/sound/soundcard.c /usr/src/linux/drivers/sound/soundcard.c
--- /usr/src/v1.1.82/linux/drivers/sound/soundcard.c	Mon Jan 16 14:18:24 1995
+++ /usr/src/linux/drivers/sound/soundcard.c	Mon Jan 16 15:40:46 1995
@@ -221,11 +221,12 @@
 }
 
 int
-snd_set_irq_handler (int interrupt_level, void (*hndlr) (int, struct pt_regs *))
+snd_set_irq_handler (int interrupt_level, void (*hndlr) (int))
 {
   int             retcode;
 
-  retcode = request_irq(interrupt_level, hndlr,
+  /* Very ugly function pointer conversion. Ugh */
+  retcode = request_irq(interrupt_level, (void (*)(int, struct pt_regs *))hndlr,
 #ifdef SND_SA_INTERRUPT
 	SA_INTERRUPT,
 #else

_______________                                    ___________________________
Garner Halloran                                    kheldar at felix.cc.gatech.edu
"We demand guaranteed rigidly defined areas of doubt and uncertainty."
                - Vroomfondel, from _The Original Hitchhiker Radio Scripts_






More information about the Ale mailing list