NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/37613 (esa doesn't work after resume on Compaq Evo N600c)



If you run eg. 'mpg123 -v file.mp3', do you see the playback running, or is the play counter stalled?

Also, can you please try the attached patch?

Thanks!

Jared

Index: esa.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/esa.c,v
retrieving revision 1.43
diff -u -r1.43 esa.c
--- esa.c       9 Dec 2007 20:28:07 -0000       1.43
+++ esa.c       22 Jan 2008 02:48:20 -0000
@@ -1674,6 +1674,11 @@
 
        delay(10000);
 
+       /* Disable legacy emulation */
+       data = pci_conf_read(pc, tag, PCI_LEGACY_AUDIO_CTRL);
+       data |= DISABLE_LEGACY;
+       pci_conf_write(pc, tag, PCI_LEGACY_AUDIO_CTRL, data);
+
        esa_config(sc);
 
        reset_state = esa_assp_halt(sc);
@@ -1694,8 +1699,8 @@
        bus_space_write_1(iot, ioh, ESA_DSP_PORT_CONTROL_REG_B,
            reset_state | ESA_REGB_ENABLE_RESET);
 
-       esa_enable_interrupts(sc);
        esa_amp_enable(sc);
+       esa_enable_interrupts(sc);
 
        return true;
 }


Home | Main Index | Thread Index | Old Index