Update of /cvsroot/alsa/alsa-kernel/pci/trident
In directory sc8-pr-cvs1:/tmp/cvs-serv5339/pci/trident

Modified Files:
        trident.c trident_main.c 
Log Message:
Fixed module/solid kernel #ifdef tests

Index: trident.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/trident/trident.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- trident.c   18 Jun 2003 11:07:22 -0000      1.18
+++ trident.c   21 Jun 2003 07:52:38 -0000      1.19
@@ -132,7 +132,7 @@
                return err;
        }
 
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && 
defined(CONFIG_SND_SEQUENCER_MODULE))
        if ((err = snd_trident_attach_synthesizer(trident)) < 0) {
                snd_card_free(card);
                return err;

Index: trident_main.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/trident/trident_main.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- trident_main.c      18 Jun 2003 11:07:22 -0000      1.44
+++ trident_main.c      21 Jun 2003 07:52:38 -0000      1.45
@@ -3077,7 +3077,8 @@
 /*
  * gameport interface
  */
-#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE)
+
+#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE))
 
 typedef struct snd_trident_gameport {
        struct gameport info;
@@ -3267,7 +3268,7 @@
                        snd_iprintf(buffer, "Memory Free    : %d\n", 
snd_util_mem_avail(trident->tlb.memhdr));
                }
        }
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && 
defined(CONFIG_SND_SEQUENCER_MODULE))
        snd_iprintf(buffer,"\nWavetable Synth\n");
        snd_iprintf(buffer, "Memory Maximum : %d\n", trident->synth.max_size);
        snd_iprintf(buffer, "Memory Used    : %d\n", trident->synth.current_size);
@@ -3630,7 +3631,7 @@
 
 int snd_trident_free(trident_t *trident)
 {
-#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE)
+#if defined(CONFIG_GAMEPORT) || (defined(MODULE) && defined(CONFIG_GAMEPORT_MODULE))
        if (trident->gameport) {
                gameport_unregister_port(&trident->gameport->info);
                kfree(trident->gameport);
@@ -3790,7 +3791,7 @@
   ---------------------------------------------------------------------------*/
 int snd_trident_attach_synthesizer(trident_t *trident)
 {      
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && 
defined(CONFIG_SND_SEQUENCER_MODULE))
        if (snd_seq_device_new(trident->card, 1, SNDRV_SEQ_DEV_ID_TRIDENT,
                               sizeof(trident_t*), &trident->seq_dev) >= 0) {
                strcpy(trident->seq_dev->name, "4DWave");
@@ -3802,7 +3803,7 @@
 
 int snd_trident_detach_synthesizer(trident_t *trident)
 {
-#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
+#if defined(CONFIG_SND_SEQUENCER) || (defined(MODULE) && 
defined(CONFIG_SND_SEQUENCER_MODULE))
        if (trident->seq_dev) {
                snd_device_free(trident->card, trident->seq_dev);
                trident->seq_dev = NULL;



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to