Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2002 15:36:56 -0700
From:      Tim Pozar <pozar@lns.com>
To:        Richard Cepas <rch@richard.eu.org>
Cc:        freebsd-multimedia@FreeBSD.ORG
Subject:   Re: A way to reset audio driver without reboot?
Message-ID:  <20020604153656.B40853@lns.com>
In-Reply-To: <20020604214219.GI53811@richard.eu.org>; from rch@richard.eu.org on Tue, Jun 04, 2002 at 11:42:20PM %2B0200
References:  <20020604214219.GI53811@richard.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <SB16 DSP 4.16> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020604153656.B40853>