From owner-freebsd-multimedia Tue Jun 4 15:37:19 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from kumr.lns.com (kumr.lns.com [63.198.122.138]) by hub.freebsd.org (Postfix) with ESMTP id 6D6CD37B404 for ; Tue, 4 Jun 2002 15:37:05 -0700 (PDT) Received: (from pozar@localhost) by kumr.lns.com (8.11.6/8.9.3) id g54Mavc41398; Tue, 4 Jun 2002 15:36:57 -0700 (PDT) (envelope-from pozar) Date: Tue, 4 Jun 2002 15:36:56 -0700 From: Tim Pozar To: Richard Cepas Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: A way to reset audio driver without reboot? Message-ID: <20020604153656.B40853@lns.com> References: <20020604214219.GI53811@richard.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020604214219.GI53811@richard.eu.org>; from rch@richard.eu.org on Tue, Jun 04, 2002 at 11:42:20PM +0200 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 On Tue, Jun 04, 2002 at 11:42:20PM +0200, Richard Cepas wrote: > Is there any way to reset audio device? I often end up in the situation when output to /dev/audio gives until reboot: > /dev/audio: Device busy > Neither lsof, fstat or ps show any programs left having using audio except /dev/mixer0. > > cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x220 irq 5 drq 1:5 bufsz 4096d (1p/1r/0v channels duplex) > > card is AWE64 I use lsof to see what may be attached to /dev/dsp... # lsof /dev/dsp COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME mpg123 41043 pozar 4w VCHR 30,19 0t11124736 8484 /dev/dsp1 Then just kill the PID. Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message