public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] es1371 synchronize_irq()
@ 2002-08-01 22:38 Petr Vandrovec
  2002-08-01 22:45 ` J Sloan
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vandrovec @ 2002-08-01 22:38 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Hello Linus,
   nobody else is apparently using OSS's es1371...

Patch below converts synchronize_irq() calls in es1371 to the new
format.
					Petr Vandrovec
					vandrove@vc.cvut.cz

diff -urdN linux/sound/oss/es1371.c linux/sound/oss/es1371.c
--- linux/sound/oss/es1371.c	2002-07-31 10:48:09.000000000 +0000
+++ linux/sound/oss/es1371.c	2002-07-31 10:54:57.000000000 +0000
@@ -1597,12 +1597,12 @@
         case SNDCTL_DSP_RESET:
 		if (file->f_mode & FMODE_WRITE) {
 			stop_dac2(s);
-			synchronize_irq();
+			synchronize_irq(s->irq);
 			s->dma_dac2.swptr = s->dma_dac2.hwptr = s->dma_dac2.count = s->dma_dac2.total_bytes = 0;
 		}
 		if (file->f_mode & FMODE_READ) {
 			stop_adc(s);
-			synchronize_irq();
+			synchronize_irq(s->irq);
 			s->dma_adc.swptr = s->dma_adc.hwptr = s->dma_adc.count = s->dma_adc.total_bytes = 0;
 		}
 		return 0;
@@ -2162,7 +2162,7 @@
 		
         case SNDCTL_DSP_RESET:
 		stop_dac1(s);
-		synchronize_irq();
+		synchronize_irq(s->irq);
 		s->dma_dac1.swptr = s->dma_dac1.hwptr = s->dma_dac1.count = s->dma_dac1.total_bytes = 0;
 		return 0;
 
@@ -3001,7 +3001,7 @@
 #endif /* ES1371_DEBUG */
 	outl(0, s->io+ES1371_REG_CONTROL); /* switch everything off */
 	outl(0, s->io+ES1371_REG_SERIAL_CONTROL); /* clear serial interrupts */
-	synchronize_irq();
+	synchronize_irq(s->irq);
 	free_irq(s->irq, s);
 	if (s->gameport.io) {
 		gameport_unregister_port(&s->gameport);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] es1371 synchronize_irq()
  2002-08-01 22:38 [PATCH] es1371 synchronize_irq() Petr Vandrovec
@ 2002-08-01 22:45 ` J Sloan
  0 siblings, 0 replies; 2+ messages in thread
From: J Sloan @ 2002-08-01 22:45 UTC (permalink / raw)
  To: Petr Vandrovec; +Cc: linux-kernel

Many of us use es1371/OSS - but are on 2.4 for now...

Joe

Petr Vandrovec wrote:

>Hello Linus,
>   nobody else is apparently using OSS's es1371...
>
>Patch below converts synchronize_irq() calls in es1371 to the new
>format.
>					Petr Vandrovec
>					vandrove@vc.cvut.cz
>
>diff -urdN linux/sound/oss/es1371.c linux/sound/oss/es1371.c
>--- linux/sound/oss/es1371.c	2002-07-31 10:48:09.000000000 +0000
>+++ linux/sound/oss/es1371.c	2002-07-31 10:54:57.000000000 +0000
>@@ -1597,12 +1597,12 @@
>         case SNDCTL_DSP_RESET:
> 		if (file->f_mode & FMODE_WRITE) {
> 			stop_dac2(s);
>-			synchronize_irq();
>+			synchronize_irq(s->irq);
> 			s->dma_dac2.swptr = s->dma_dac2.hwptr = s->dma_dac2.count = s->dma_dac2.total_bytes = 0;
> 		}
> 		if (file->f_mode & FMODE_READ) {
> 			stop_adc(s);
>-			synchronize_irq();
>+			synchronize_irq(s->irq);
> 			s->dma_adc.swptr = s->dma_adc.hwptr = s->dma_adc.count = s->dma_adc.total_bytes = 0;
> 		}
> 		return 0;
>@@ -2162,7 +2162,7 @@
> 		
>         case SNDCTL_DSP_RESET:
> 		stop_dac1(s);
>-		synchronize_irq();
>+		synchronize_irq(s->irq);
> 		s->dma_dac1.swptr = s->dma_dac1.hwptr = s->dma_dac1.count = s->dma_dac1.total_bytes = 0;
> 		return 0;
> 
>@@ -3001,7 +3001,7 @@
> #endif /* ES1371_DEBUG */
> 	outl(0, s->io+ES1371_REG_CONTROL); /* switch everything off */
> 	outl(0, s->io+ES1371_REG_SERIAL_CONTROL); /* clear serial interrupts */
>-	synchronize_irq();
>+	synchronize_irq(s->irq);
> 	free_irq(s->irq, s);
> 	if (s->gameport.io) {
> 		gameport_unregister_port(&s->gameport);
>-
>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/
>
>  
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-01 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-01 22:38 [PATCH] es1371 synchronize_irq() Petr Vandrovec
2002-08-01 22:45 ` J Sloan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox