FreeBSD Bugzilla – Attachment 11345 Details for
Bug 22372
[PATCH] resume from suspend breaks sound mixer volume. (with ESS18XX)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 988 bytes, created by
aizu
on 2000-10-28 08:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
aizu
Created:
2000-10-28 08:40:01 UTC
Size:
988 bytes
patch
obsolete
>diff -u ess.c.orig ess.c >--- ess.c.orig Thu Oct 5 14:07:49 2000 >+++ ess.c Sat Oct 28 16:01:32 2000 >@@ -888,11 +888,33 @@ > return ess_doattach(dev, sc); > } > >+static int >+ess_resume(device_t dev) >+{ >+ struct ess_info *sc; >+ >+ sc = pcm_getdevinfo(dev); >+ if (ess_reset_dsp(sc)) { >+ device_printf(dev, "unable reset the DSP at resume\n"); >+ return ENXIO; >+ } else { >+ device_printf(dev, "reset at resume\n"); >+ } >+ >+ if (mixer_reinit(dev)) { >+ device_printf(dev, "unable to reinitialize the mixer at resume\n >"); >+ return ENXIO; >+ } >+ >+ return 0; >+} >+ > 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, ess_resume), > > { 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 22372
: 11345