patch-2.1.41 linux/drivers/sound/dev_table.c
Next file: linux/drivers/sound/dev_table.h
Previous file: linux/drivers/sound/configure.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Sun May 11 02:58:59 1997
- Orig file:
v2.1.40/linux/drivers/sound/dev_table.c
- Orig date:
Tue Mar 4 10:25:24 1997
diff -u --recursive --new-file v2.1.40/linux/drivers/sound/dev_table.c linux/drivers/sound/dev_table.c
@@ -15,6 +15,7 @@
#define _DEV_TABLE_C_
#include "sound_config.h"
+int sb_be_quiet = 0;
int sound_started = 0;
@@ -43,20 +44,15 @@
#ifdef CONFIG_AUDIO
if (num_audiodevs) /* Audio devices present */
{
- DMAbuf_init ();
+ int dev;
+
+ for (dev = 0; dev < num_audiodevs; dev++)
+ {
+ }
audio_init_devices ();
}
#endif
-#ifdef CONFIG_MIDI
- if (num_midis)
- MIDIbuf_init ();
-#endif
-
-#ifdef CONFIG_SEQUENCER
- if (num_midis + num_synths)
- sequencer_init ();
-#endif
return;
}
@@ -493,17 +489,11 @@
/*
* Hardcoded defaults
*/
- op->buffsize = DSP_BUFFSIZE;
-
audio_devs[num_audiodevs] = op;
num = num_audiodevs++;
- DMAbuf_init ();
-
- op->dmap_out->dma = dma1;
- op->dmap_in->dma = dma2;
+ DMAbuf_init (num, dma1, dma2);
- DMAbuf_init ();
audio_init_devices ();
return num;
#else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov