FreeBSD Bugzilla – Attachment 16876 Details for
Bug 30794
ESS Solo-1 does not work after suspend/resume.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.18 KB, created by
NOKUBI Hirotaka
on 2001-09-24 18:40:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
NOKUBI Hirotaka
Created:
2001-09-24 18:40:00 UTC
Size:
1.18 KB
patch
obsolete
>Index: solo.c >=================================================================== >RCS file: /home/ncvs/src/sys/dev/sound/pci/solo.c,v >retrieving revision 1.18 >diff -u -r1.18 solo.c >--- solo.c 2000/12/23 03:16:12 1.18 >+++ solo.c 2001/09/24 17:34:43 >@@ -991,12 +991,31 @@ > return 0; > } > >+static int >+ess_resume(device_t dev) >+{ >+ struct ess_info *sc; >+ >+ sc = pcm_getdevinfo(dev); >+ if (ess_reset_dsp(sc)) >+ goto no; >+ if (mixer_reinit(dev) == -1) >+ goto no; >+ port_wr(sc->io, 0x7, 0xb0, 1); /* enable irqs */ >+ if (sc->newspeed) >+ ess_setmixer(sc, 0x71, 0x2a); >+ return 0; >+no: >+ device_printf(dev, "unable to reinitialize the card or mixer\n"); >+ return ENXIO; >+} >+ > static device_method_t ess_methods[] = { > /* Device interface */ > DEVMETHOD(device_probe, ess_probe), > DEVMETHOD(device_attach, ess_attach), > DEVMETHOD(device_detach, ess_detach), >- DEVMETHOD(device_resume, bus_generic_resume), >+ DEVMETHOD(device_resume, ess_resume), > DEVMETHOD(device_suspend, bus_generic_suspend), > > { 0, 0 }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 30794
: 16876