Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15122/pci

Modified Files:
        es1968.c 
Log Message:
- set ACPI D3 at suspend.
- fixed the interrupt disabling at shutdown.
- enabled PM for compaq Armada.


Index: es1968.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/es1968.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- es1968.c    14 Apr 2004 17:27:04 -0000      1.65
+++ es1968.c    3 May 2004 17:34:48 -0000       1.66
@@ -2426,6 +2426,7 @@
        snd_pcm_suspend_all(chip->pcm);
        snd_ac97_suspend(chip->ac97);
        snd_es1968_bob_stop(chip);
+       snd_es1968_set_acpi(chip, ACPI_D3);
        snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
        return 0;
 }
@@ -2463,8 +2464,11 @@
 
 static int snd_es1968_free(es1968_t *chip)
 {
-       if (chip->res_io_port)
-               snd_es1968_reset(chip);
+       if (chip->res_io_port) {
+               synchronize_irq(chip->irq);
+               outw(1, chip->io_port + 0x04); /* clear WP interrupts */
+               outw(0, chip->io_port + ESM_PORT_HOST_IRQ); /* disable IRQ */
+       }
 
 #ifdef SUPPORT_JOYSTICK
        if (chip->res_joystick) {
@@ -2498,6 +2502,7 @@
 };
 
 static struct ess_device_list pm_whitelist[] __devinitdata = {
+       { TYPE_MAESTRO2E, 0x0e11 },     /* Compaq Armada */
        { TYPE_MAESTRO2E, 0x1028 },
        { TYPE_MAESTRO2E, 0x103c },
        { TYPE_MAESTRO2E, 0x1179 },



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to