View | Details | Raw Unified | Return to bug 22372
Collapse All | Expand All

(-)ess.c Sat Oct 28 16:01:32 2000 (+22 lines)
Lines 888-898 Link Here
888
       return ess_doattach(dev, sc);
888
       return ess_doattach(dev, sc);
889
}
889
}
890
890
891
static int
892
ess_resume(device_t dev)
893
{
894
       struct ess_info *sc;
895
896
       sc = pcm_getdevinfo(dev);
897
       if (ess_reset_dsp(sc)) {
898
               device_printf(dev, "unable reset the DSP at resume\n");
899
               return ENXIO;
900
       } else {
901
               device_printf(dev, "reset at resume\n");
902
       }
903
904
       if (mixer_reinit(dev)) {
905
               device_printf(dev, "unable to reinitialize the mixer at resume\n
906
               return ENXIO;
907
       }
908
909
       return 0;
910
}
911
891
static device_method_t ess_methods[] = {
912
static device_method_t ess_methods[] = {
892
       /* Device interface */
913
       /* Device interface */
893
       DEVMETHOD(device_probe,         ess_probe),
914
       DEVMETHOD(device_probe,         ess_probe),
894
       DEVMETHOD(device_attach,        ess_attach),
915
       DEVMETHOD(device_attach,        ess_attach),
895
       DEVMETHOD(device_detach,        ess_detach),
916
       DEVMETHOD(device_detach,        ess_detach),
917
       DEVMETHOD(device_resume,        ess_resume),
896
918
897
       { 0, 0 }
919
       { 0, 0 }
898
};
920
};

Return to bug 22372