patch-2.3.48 linux/drivers/sound/gus_card.c
Next file: linux/drivers/sound/gus_midi.c
Previous file: linux/drivers/sound/finetune.h
Back to the patch index
Back to the overall index
- Lines: 65
- Date:
Thu Feb 24 22:12:57 2000
- Orig file:
v2.3.47/linux/drivers/sound/gus_card.c
- Orig date:
Wed Mar 10 17:03:52 1999
diff -u --recursive --new-file v2.3.47/linux/drivers/sound/gus_card.c linux/drivers/sound/gus_card.c
@@ -26,8 +26,6 @@
#include "sound_config.h"
#include "soundmodule.h"
-#ifdef CONFIG_GUS
-
#include "gus_hw.h"
void gusintr(int irq, void *dev_id, struct pt_regs *dummy);
@@ -55,9 +53,7 @@
if (hw_config->dma2 != -1 && hw_config->dma2 != hw_config->dma)
if (sound_alloc_dma(hw_config->dma2, "GUS(2)"))
printk(KERN_ERR "gus_card.c: Can't allocate DMA channel %d\n", hw_config->dma2);
-#ifdef CONFIG_MIDI
gus_midi_init(hw_config);
-#endif
if(request_irq(hw_config->irq, gusintr, 0, "Gravis Ultrasound", hw_config)<0)
printk(KERN_ERR "gus_card.c: Unable to allocate IRQ %d\n", hw_config->irq);
@@ -156,28 +152,20 @@
}
if (src & (MIDI_TX_IRQ | MIDI_RX_IRQ))
{
-#ifdef CONFIG_MIDI
gus_midi_interrupt(0);
-#endif
}
if (src & (GF1_TIMER1_IRQ | GF1_TIMER2_IRQ))
{
-#ifdef CONFIG_SEQUENCER
if (gus_timer_enabled)
sound_timer_interrupt();
gus_write8(0x45, 0); /* Ack IRQ */
gus_timer_command(4, 0x80); /* Reset IRQ flags */
-#else
- gus_write8(0x45, 0); /* Stop timers */
-#endif
}
if (src & (WAVETABLE_IRQ | ENVELOPE_IRQ))
gus_voice_irq();
}
}
-#endif
-
/*
* Some extra code for the 16 bit sampling option
*/
@@ -191,10 +179,8 @@
void attach_gus_db16(struct address_info *hw_config)
{
-#ifdef CONFIG_GUS
gus_pcm_volume = 100;
gus_wave_volume = 90;
-#endif
hw_config->slots[3] = ad1848_init("GUS 16 bit sampling", hw_config->io_base,
hw_config->irq,
@@ -292,4 +278,4 @@
SOUND_LOCK_END;
}
-#endif
+#endif /* MODULE */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)