From owner-freebsd-multimedia Wed Jan 30 13:45: 0 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from defiant.vmunix.org (defiant.vmunix.org [62.208.181.16]) by hub.freebsd.org (Postfix) with ESMTP id 0848137B405 for ; Wed, 30 Jan 2002 13:44:57 -0800 (PST) Received: by defiant.vmunix.org (Postfix, from userid 1001) id 95ED7B0508; Wed, 30 Jan 2002 22:44:55 +0100 (CET) Subject: FIONREAD to /dev/dsp causes kernel freeze for a few seconds To: freebsd-multimedia@freebsd.org Date: Wed, 30 Jan 2002 22:44:55 +0100 (CET) Reply-To: torstenb@vmunix.org X-Mailer: ELM [version 2.4ME+ PL94c (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20020130214455.95ED7B0508@defiant.vmunix.org> From: torstenb@defiant.vmunix.org (Torsten Blum) Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, since ports/mbone/rat is currently broken I was about to fix it (it tried to use mixer ioctl's on /dev/{audio,dsp} which doesnt work anymore with 4.4 or 4.5. Anyways, the problem I'm seeing now is that during startup of rat, the system freezes for ~2-4 seconds and rat terminates itself after the freeze. During the freeze I can't even get into DDB. Wild guess: maybe it's a interrupt storm. I tracked it down to the FIONREAD in auddev_newpcm.c:newpcm_audio_is_ready(). If I insert a usleep() before or after the ioctl there's no problem. Even a usleep(1) is sufficient on my system (P3-800, ES1370). I put a modifed rat "port" at http://defiant.vmunix.org/~torstenb/rat.tar.gz The code in question is rat/files/auddev_newpcm.c Anyways, I'm not familar with /sys/dev/sound at all. Does anyone have an idea what's causing this ? -tb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message