patch-2.4.2 linux/drivers/sound/ad1848.c
Next file: linux/drivers/sound/audio.c
Previous file: linux/drivers/sound/ad1816.c
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Sun Feb 4 10:05:29 2001
- Orig file:
v2.4.1/linux/drivers/sound/ad1848.c
- Orig date:
Fri Aug 11 08:26:43 2000
diff -u --recursive --new-file v2.4.1/linux/drivers/sound/ad1848.c linux/drivers/sound/ad1848.c
@@ -28,6 +28,7 @@
* of irqs. Use dev_id.
* Christoph Hellwig : adapted to module_init/module_exit
* Aki Laukkanen : added power management support
+ * Arnaldo C. de Melo : added missing restore_flags in ad1848_resume
*
* Status:
* Tested. Believed fully functional.
@@ -1900,9 +1901,6 @@
if(portc==NULL)
return -1;
- if (owner)
- ad1848_audio_driver.owner = owner;
-
if ((my_dev = sound_install_audiodrv(AUDIO_DRIVER_VERSION,
dev_name,
&ad1848_audio_driver,
@@ -1920,6 +1918,8 @@
audio_devs[my_dev]->portc = portc;
audio_devs[my_dev]->mixer_dev = -1;
+ if (owner)
+ audio_devs[my_dev]->d->owner = owner;
memset((char *) portc, 0, sizeof(*portc));
nr_ad1848_devs++;
@@ -1986,6 +1986,7 @@
if (sound_alloc_dma(dma_capture, devc->name))
printk(KERN_WARNING "ad1848.c: Can't allocate DMA%d\n", dma_capture);
}
+
if ((e = sound_install_mixer(MIXER_DRIVER_VERSION,
dev_name,
&ad1848_mixer_operations,
@@ -1993,6 +1994,8 @@
devc)) >= 0)
{
audio_devs[my_dev]->mixer_dev = e;
+ if (owner)
+ mixer_devs[e]->owner = owner;
}
return my_dev;
}
@@ -2751,6 +2754,7 @@
bits = interrupt_bits[devc->irq];
if (bits == -1) {
printk(KERN_ERR "MSS: Bad IRQ %d\n", devc->irq);
+ restore_flags(flags);
return -1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)