From owner-freebsd-mobile Thu Jun 27 17:41:24 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.115.5]) by hub.freebsd.org (Postfix) with ESMTP id A146A37B401 for ; Thu, 27 Jun 2002 17:41:19 -0700 (PDT) Received: from gamma.cis.ohio-state.edu (daemon@gamma.cis.ohio-state.edu [164.107.112.13]) by cis.ohio-state.edu (8.9.1/8.9.1) with ESMTP id UAA29486; Thu, 27 Jun 2002 20:41:18 -0400 (EDT) From: murat demirbas Received: (from demirbas@localhost) by gamma.cis.ohio-state.edu (8.11.6/8.11.6) id g5S0fIp23464; Thu, 27 Jun 2002 20:41:18 -0400 (EDT) Message-Id: <200206280041.g5S0fIp23464@gamma.cis.ohio-state.edu> Subject: Re: Soundcard freezes after a suspend... To: ambrisko@ambrisko.com (Doug Ambrisko) Date: Thu, 27 Jun 2002 20:41:18 -0400 (EDT) Cc: demirbas@cis.ohio-state.edu (murat demirbas), freebsd-mobile@FreeBSD.ORG In-Reply-To: <200206262027.g5QKRm002976@ambrisko.com> from "Doug Ambrisko" at Jun 26, 2002 01:27:48 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Doug, I cannot thank you more... My soundcard now works even after the suspends... I think csa.c should include this patch to end the suffering of laptop users... Thank you very much... Best wishes, \murat > murat demirbas writes: > | I configured APM so I can suspend my laptop... > | However, when I resume the laptop, the soundcard freezes... > | My soundcard is CS46xx > > Try this patch in /sys/dev/sound/pci then rebuild your kernel and reboot. > I'm sure it is not the best way for me but it works for me and is > better then doing a kldunload/kldload. > > Doug A. > > Index: csa.c > =================================================================== > RCS file: /cvs/src/sys/dev/sound/pci/csa.c,v > retrieving revision 1.8.2.10 > diff -c -r1.8.2.10 csa.c > *** csa.c 22 Apr 2002 15:49:32 -0000 1.8.2.10 > --- csa.c 26 Jun 2002 20:25:18 -0000 > *************** > *** 360,365 **** > --- 360,374 ---- > return bus_generic_detach(dev); > } > > + static int > + csa_resume(device_t dev) > + { > + csa_detach(dev); > + csa_attach(dev); > + > + return 0; > + } > + > static struct resource * > csa_alloc_resource(device_t bus, device_t child, int type, int *rid, > u_long start, u_long end, u_long count, u_int flags) > *************** > *** 1023,1029 **** > DEVMETHOD(device_detach, csa_detach), > DEVMETHOD(device_shutdown, bus_generic_shutdown), > DEVMETHOD(device_suspend, bus_generic_suspend), > ! DEVMETHOD(device_resume, bus_generic_resume), > > /* Bus interface */ > DEVMETHOD(bus_print_child, bus_generic_print_child), > --- 1032,1038 ---- > DEVMETHOD(device_detach, csa_detach), > DEVMETHOD(device_shutdown, bus_generic_shutdown), > DEVMETHOD(device_suspend, bus_generic_suspend), > ! DEVMETHOD(device_resume, csa_resume), > > /* Bus interface */ > DEVMETHOD(bus_print_child, bus_generic_print_child), > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message