From owner-freebsd-mobile Tue Dec 4 11:31:27 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from gvr.gvr.org (gvr.gvr.org [212.61.40.17]) by hub.freebsd.org (Postfix) with ESMTP id 440F537B416 for ; Tue, 4 Dec 2001 11:31:22 -0800 (PST) Received: by gvr.gvr.org (Postfix, from userid 657) id 657205809; Tue, 4 Dec 2001 20:31:20 +0100 (CET) Date: Tue, 4 Dec 2001 20:31:20 +0100 From: Guido van Rooij To: Andy Sparrow , Nathan Parrish Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: meastro3 and suspend/resume Message-ID: <20011204203120.A70375@gvr.gvr.org> References: <20011203195459.AFC143E10@CRWdog.demon.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: <20011203195459.AFC143E10@CRWdog.demon.co.uk>; from spadger@best.com on Mon, Dec 03, 2001 at 11:54:59AM -0800 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The attached patch wil fix the suspend/resume problems. -Guido --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=pat --- 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 ; ipch_cnt ; i++) { --5mCyUwZo2JvN/JJP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message