[PATCH] 32/41 sound/oss/rme96xx.c - convert cli to spinlocks

pwaechtler@mac.com
Thu, 29 Aug 2002 21:56:27 +0200


--- vanilla-2.5.32/sound/oss/rme96xx.c Sat Aug 10 00:04:15 2002
+++ linux-2.5-cli-oss/sound/oss/rme96xx.c Sat Aug 10 17:03:07 2002
@@ -10,6 +10,7 @@
* 11 May 2001: 0.4 fixed for SMP, included into kernel source tree
* 17 May 2001: 0.5 draining code didn't work on new cards
* 18 May 2001: 0.6 remove synchronize_irq() call
+ * 10 Aug 2002: added synchronize_irq() again

TODO:
- test more than one card --- done
@@ -41,6 +42,7 @@
#include <linux/delay.h>
#include <linux/slab.h>
#include <asm/dma.h>
+#include <asm/hardirq.h>
#include <linux/init.h>
#include <linux/poll.h>
#include "rme96xx.h"
@@ -786,8 +788,8 @@
}

unregister_sound_mixer(s->mixer);
-/* synchronize_irq(); This call got lost somehow ? */
- free_irq(s->irq,s);
+ synchronize_irq(s->irq);
+ free_irq(s->irq,s);
busmaster_free(s->recbuf,RME96xx_DMA_MAX_SIZE_ALL);
busmaster_free(s->playbuf,RME96xx_DMA_MAX_SIZE_ALL);
kfree(s);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/