[PATCH] 1/11 sound/oss replace cli()

From: Peter Waechtler (pwaechtler@mac.com)
Date: Sat Sep 21 2002 - 15:30:10 EST


This is a resent with a correction of dmasound_q40.c - I don't touch the
IRQ handler anymore.

This one just needs a parameter to synchronize_irq(irq);

--- linux-2.5.36/sound/oss/cs4281/cs4281m.c 2002-09-21
19:02:02.000000000 +0200
+++ linux-2.5-cli-oss/sound/oss/cs4281/cs4281m.c 2002-08-10
17:13:46.000000000 +0200
@@ -3205,7 +3205,7 @@
                           "cs4281: cs4281_ioctl(): DSP_RESET\n"));
                  if (file->f_mode & FMODE_WRITE) {
                          stop_dac(s);
- synchronize_irq();
+ synchronize_irq(s->irq);
                          s->dma_dac.swptr = s->dma_dac.hwptr =
                              s->dma_dac.count = s->dma_dac.total_bytes =
                              s->dma_dac.blocks = s->dma_dac.wakeup = 0;
@@ -3213,7 +3213,7 @@
                  }
                  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 =
                              s->dma_adc.blocks = s->dma_dac.wakeup = 0;
@@ -4452,7 +4452,7 @@
  {
          struct cs4281_state *s = pci_get_drvdata(pci_dev);
          // stop DMA controller
- synchronize_irq();
+ synchronize_irq(s->irq);
          free_irq(s->irq, s);
          unregister_sound_dsp(s->dev_audio);
          unregister_sound_mixer(s->dev_mixer);

-
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/



This archive was generated by hypermail 2b29 : Mon Sep 23 2002 - 22:00:35 EST