patch-2.1.132 linux/drivers/sound/sonicvibes.c
Next file: linux/drivers/sound/sound_calls.h
Previous file: linux/drivers/sound/sequencer.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Thu Dec 17 09:04:49 1998
- Orig file:
v2.1.131/linux/drivers/sound/sonicvibes.c
- Orig date:
Sun Nov 8 14:03:04 1998
diff -u --recursive --new-file v2.1.131/linux/drivers/sound/sonicvibes.c linux/drivers/sound/sonicvibes.c
@@ -47,6 +47,7 @@
* Now mixer behaviour can basically be selected between
* "OSS documented" and "OSS actual" behaviour
* 31.08.98 0.7 Fix realplayer problems - dac.count issues
+ * 10.12.98 0.8 Fix drain_dac trying to wait on not yet initialized DMA
*
*/
@@ -1226,7 +1227,7 @@
unsigned long flags;
int count, tmo;
- if (s->dma_dac.mapped)
+ if (s->dma_dac.mapped || !s->dma_dac.ready)
return 0;
current->state = TASK_INTERRUPTIBLE;
add_wait_queue(&s->dma_dac.wait, &wait);
@@ -2277,7 +2278,7 @@
if (!pci_present()) /* No PCI bus in this machine! */
return -ENODEV;
- printk(KERN_INFO "sv: version v0.7 time " __TIME__ " " __DATE__ "\n");
+ printk(KERN_INFO "sv: version v0.8 time " __TIME__ " " __DATE__ "\n");
#if 0
if (!(wavetable_mem = __get_free_pages(GFP_KERNEL, 20-PAGE_SHIFT)))
printk(KERN_INFO "sv: cannot allocate 1MB of contiguous nonpageable memory for wavetable data\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov