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

Modified Files:
        ens1370.c 
Log Message:
fixed the compilation without CONFIG_GAMEPORT.



Index: ens1370.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ens1370.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- ens1370.c   19 Dec 2002 16:26:30 -0000      1.30
+++ ens1370.c   19 Dec 2002 17:14:24 -0000      1.31
@@ -1753,8 +1753,10 @@
 
 static int snd_ensoniq_free(ensoniq_t *ensoniq)
 {
+#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE)
        if (ensoniq->ctrl & ES_JYSTK_EN)
                snd_ensoniq_joy_disable(ensoniq);
+#endif
        snd_ensoniq_proc_done(ensoniq);
        if (ensoniq->irq < 0)
                goto __hw_end;
@@ -1835,7 +1837,6 @@
        if (ensoniq == NULL)
                return -ENOMEM;
        spin_lock_init(&ensoniq->reg_lock);
-       init_MUTEX(&ensoniq->joy_sem);
        ensoniq->card = card;
        ensoniq->pci = pci;
        ensoniq->irq = -1;
@@ -1950,11 +1951,12 @@
        outb(ensoniq->uartc = 0x00, ES_REG(ensoniq, UART_CONTROL));
        outb(0x00, ES_REG(ensoniq, UART_RES));
        outl(ensoniq->cssr, ES_REG(ensoniq, STATUS));
+#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE)
+       init_MUTEX(&ensoniq->joy_sem);
 #ifdef CHIP1371
        snd_ctl_add(card, snd_ctl_new1(&snd_es1371_joystick_addr, ensoniq));
 #endif
        snd_ctl_add(card, snd_ctl_new1(&snd_ensoniq_control_joystick, ensoniq));
-#if defined(CONFIG_GAMEPORT) || defined(CONFIG_GAMEPORT_MODULE)
        ensoniq->gameport.io = 0x200;   // FIXME: is ES1371 configured like this above 
?
 #endif
        synchronize_irq(ensoniq->irq);



-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to