patch-1.3.58 linux/drivers/sound/gus_card.c
Next file: linux/drivers/sound/gus_midi.c
Previous file: linux/drivers/sound/experimental.txt
Back to the patch index
Back to the overall index
- Lines: 79
- Date:
Tue Jan 9 00:37:14 1996
- Orig file:
v1.3.57/linux/drivers/sound/gus_card.c
- Orig date:
Wed Nov 8 07:11:35 1995
diff -u --recursive --new-file v1.3.57/linux/drivers/sound/gus_card.c linux/drivers/sound/gus_card.c
@@ -29,7 +29,7 @@
#include "sound_config.h"
-#if defined(CONFIGURE_SOUNDCARD) && !defined(EXCLUDE_GUS)
+#if defined(CONFIG_GUS)
#include "gus_hw.h"
@@ -64,7 +64,7 @@
if (hw_config->dma2 != -1 && hw_config->dma2 != hw_config->dma)
if (sound_alloc_dma (hw_config->dma2, "GUS(2)"))
printk ("gus_card.c: Can't allocate DMA channel2\n");
-#ifndef EXCLUDE_MIDI
+#ifdef CONFIG_MIDI
mem_start = gus_midi_init (mem_start);
#endif
return mem_start;
@@ -93,7 +93,7 @@
if (hw_config->dma2 != -1 && hw_config->dma2 != hw_config->dma)
if (sound_alloc_dma (hw_config->dma2, "GUS"))
printk ("gus_card.c: Can't allocate DMA channel2\n");
-#ifndef EXCLUDE_MIDI
+#ifdef CONFIG_MIDI
mem_start = gus_midi_init (mem_start);
#endif
return mem_start;
@@ -166,7 +166,7 @@
sti ();
-#ifndef EXCLUDE_GUSMAX
+#ifdef CONFIG_GUSMAX
if (have_gus_max)
ad1848_interrupt (irq, NULL);
#endif
@@ -183,16 +183,19 @@
if (src & (MIDI_TX_IRQ | MIDI_RX_IRQ))
{
-#ifndef EXCLUDE_MIDI
+#ifdef CONFIG_MIDI
gus_midi_interrupt (0);
#endif
}
if (src & (GF1_TIMER1_IRQ | GF1_TIMER2_IRQ))
{
-#ifndef EXCLUDE_SEQUENCER
+#ifdef CONFIG_SEQUENCER
if (gus_timer_enabled)
- sound_timer_interrupt ();
+ {
+ sound_timer_interrupt ();
+ }
+
gus_write8 (0x45, 0); /* Ack IRQ */
gus_timer_command (4, 0x80); /* Reset IRQ flags */
@@ -213,7 +216,7 @@
/*
* Some extra code for the 16 bit sampling option
*/
-#if defined(CONFIGURE_SOUNDCARD) && !defined(EXCLUDE_GUS16)
+#if defined(CONFIG_GUS16)
int
probe_gus_db16 (struct address_info *hw_config)
@@ -224,8 +227,10 @@
long
attach_gus_db16 (long mem_start, struct address_info *hw_config)
{
+#ifdef CONFIG_GUS
gus_pcm_volume = 100;
gus_wave_volume = 90;
+#endif
ad1848_init ("GUS 16 bit sampling", hw_config->io_base,
hw_config->irq,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this