patch-2.3.48 linux/drivers/sound/pas2_card.c
Next file: linux/drivers/sound/pas2_midi.c
Previous file: linux/drivers/sound/opl3sa2.c
Back to the patch index
Back to the overall index
- Lines: 62
- Date:
Thu Feb 24 22:12:57 2000
- Orig file:
v2.3.47/linux/drivers/sound/pas2_card.c
- Orig date:
Thu Jan 14 22:59:47 1999
diff -u --recursive --new-file v2.3.47/linux/drivers/sound/pas2_card.c linux/drivers/sound/pas2_card.c
@@ -9,8 +9,6 @@
#include "sound_config.h"
#include "soundmodule.h"
-#ifdef CONFIG_PAS
-
static unsigned char dma_bits[] = {
4, 1, 2, 3, 0, 5, 6, 7
};
@@ -92,16 +90,12 @@
if (status & 0x08)
{
-#ifdef CONFIG_AUDIO
pas_pcm_interrupt(status, 1);
-#endif
status &= ~0x08;
}
if (status & 0x10)
{
-#ifdef CONFIG_MIDI
pas_midi_interrupt();
-#endif
status &= ~0x10;
}
}
@@ -239,7 +233,7 @@
mix_write(0x80 | 5, 0x078B);
mix_write(5, 0x078B);
-#if !defined(DISABLE_SB_EMULATION) && defined(CONFIG_SB)
+#if !defined(DISABLE_SB_EMULATION)
{
struct address_info *sb_config;
@@ -351,18 +345,14 @@
}
if (config_pas_hw(hw_config))
{
-#ifdef CONFIG_AUDIO
pas_pcm_init(hw_config);
-#endif
-#if !defined(MODULE) && !defined(DISABLE_SB_EMULATION) && defined(CONFIG_SB)
+#if !defined(MODULE) && !defined(DISABLE_SB_EMULATION)
sb_dsp_disable_midi(pas_sb_base); /* No MIDI capability */
#endif
-#ifdef CONFIG_MIDI
pas_midi_init();
-#endif
pas_init_mixer();
}
}
@@ -453,5 +443,4 @@
}
-#endif
-#endif
+#endif /* MODULE */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)