From owner-freebsd-mobile Wed Jan 17 20:23:56 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from neptune.he.net (neptune.he.net [216.218.166.2]) by hub.freebsd.org (Postfix) with ESMTP id F0CC437B400 for ; Wed, 17 Jan 2001 20:23:38 -0800 (PST) Received: from netrinsics.com ([211.101.228.66] (may be forged)) by neptune.he.net (8.8.6/8.8.2) with ESMTP id UAA27945 for ; Wed, 17 Jan 2001 20:23:17 -0800 Received: (from robinson@localhost) by netrinsics.com (8.11.1/8.11.1) id f0HM1uP59212; Wed, 17 Jan 2001 22:01:56 GMT (envelope-from robinson) Date: Wed, 17 Jan 2001 22:01:56 GMT From: Michael Robinson Message-Id: <200101172201.f0HM1uP59212@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