From owner-freebsd-mobile Wed Jan 17 20:26:50 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from netrinsics.com (unknown [211.101.228.66]) by hub.freebsd.org (Postfix) with ESMTP id 1294337B400 for ; Wed, 17 Jan 2001 20:26:32 -0800 (PST) Received: (from robinson@localhost) by netrinsics.com (8.11.1/8.11.1) id f0HMF7w59249 for freebsd-mobile@freebsd.org; Wed, 17 Jan 2001 22:15:07 GMT (envelope-from robinson) Date: Wed, 17 Jan 2001 22:15:07 GMT From: Michael Robinson Message-Id: <200101172215.f0HMF7w59249@netrinsics.com> To: freebsd-mobile@freebsd.org Subject: No, I mean *really* reset the DSP Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have a Dell 5000e running -CURRENT (late December vintage). I can suspend/resume mostly ok (X requires switching to a text console first, or it gets confused). The big problem is that the sound driver doesn't work (no sound at all) after a suspend/resume cycle. From I found this ioctl: #define SNDCTL_DSP_RESET _IO ('P', 0) And I wrote this short program: #include #include #include main(int argc, char **argv) { int file, err; file = open("/dev/dsp", O_WRONLY); if (file < 0) { perror("file error"); } err = ioctl(file, SNDCTL_DSP_RESET, 0); if (err) { perror("ioctl error"); } } If I run this program after resuming, instead of complete silence, I get nasty static noise from any program that uses audio. So, this has an effect, but it is not restoring the audio to a "freshly booted" state. Short of hacking up the drivers, does anyone have any suggestions? -Michael Robinson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message