patch-2.1.128 linux/drivers/sound/soundcard.c
Next file: linux/drivers/sound/wavfront.c
Previous file: linux/drivers/sound/sgalaxy.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Sun Nov 8 13:56:11 1998
- Orig file:
v2.1.127/linux/drivers/sound/soundcard.c
- Orig date:
Wed Aug 26 11:37:39 1998
diff -u --recursive --new-file v2.1.127/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -15,6 +15,8 @@
* integrated sound_switch.c
* Stefan Reinauer : integrated /proc/sound (equals to /dev/sndstat,
* which should disappear in the near future)
+ *
+ * Rob Riggs Added persistent DMA buffers support (1998/10/17)
*/
#include <linux/config.h>
@@ -64,6 +66,9 @@
caddr_t sound_mem_blocks[1024];
int sound_nblocks = 0;
+/* Persistent DMA buffers */
+int sound_dmap_flag = 0; /* Off by default */
+
static int soundcard_configured = 0;
static char dma_alloc_map[MAX_DMA_CHANNELS] =
@@ -848,7 +853,9 @@
#ifdef MODULE
int traceinit = 0;
+static int dmabuf = 0;
MODULE_PARM(traceinit, "i");
+MODULE_PARM(dmabuf, "i");
int init_module(void)
{
@@ -874,6 +881,10 @@
printk(KERN_ERR "sound: driver already loaded/included in kernel\n");
return err;
}
+
+ /* Protecting the innocent */
+ sound_dmap_flag = (dmabuf > 0 ? 1 : 0);
+
chrdev_registered = 1;
soundcard_init();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov