Date: Tue, 4 Dec 2001 20:31:20 +0100 From: Guido van Rooij <guido@gvr.org> To: Andy Sparrow <spadger@best.com>, Nathan Parrish <ndparrish@yahoo.com> Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: meastro3 and suspend/resume Message-ID: <20011204203120.A70375@gvr.gvr.org> In-Reply-To: <20011203195459.AFC143E10@CRWdog.demon.co.uk>; from spadger@best.com on Mon, Dec 03, 2001 at 11:54:59AM -0800 References: <guido@gvr.org> <20011203195459.AFC143E10@CRWdog.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
The attached patch wil fix the suspend/resume problems.
-Guido
[-- Attachment #2 --]
--- maestro3.c.orig Tue Dec 4 19:50:56 2001
+++ maestro3.c Tue Dec 4 20:25:21 2001
@@ -1304,6 +1308,8 @@
reset_state = m3_assp_halt(sc);
+ m3_codec_reset(sc);
+
/* Restore the ASSP state */
for (i = REV_B_CODE_MEMORY_BEGIN; i <= REV_B_CODE_MEMORY_END; i++)
m3_wr_assp_code(sc, i, sc->savemem[index++]);
@@ -1319,6 +1325,11 @@
m3_enable_ints(sc);
m3_amp_enable(sc);
+
+ if (mixer_reinit(dev) == -1) {
+ device_printf(dev, "unable to reinitialize the mixer\n");
+ return ENXIO;
+ }
/* Turn the channels back on */
for (i=0 ; i<sc->pch_cnt ; i++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011204203120.A70375>
