Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 1997 21:06:53 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        oliver.fromme@heim3.tu-clausthal.de (Oliver Fromme)
Cc:        Randall Hopper <rhh@ct.picker.com>, multimedia@FreeBSD.ORG
Subject:   Re: guspnp9: /dev/dsp close() hangs 
Message-ID:  <199707140406.VAA01095@rah.star-gate.com>
In-Reply-To: Your message of "Mon, 14 Jul 1997 04:14:29 %2B0200." <199707140214.EAA16083@elch.heim4.tu-clausthal.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
Hi guys,

In sb_dsp_close:
Move down sb_free_irq to after dsp_cleanup.

   /* DMAbuf_close_dma (dev); */
    /* sb_dsp_command (0xd4); */
    dsp_cleanup();
    sb_free_irq();


sb16dsp.c:sb16_dsp_close has the same problem.

See if that fixes the sb cards hanging during a close.


	Tnks,
	Amancio



>From The Desk Of Oliver Fromme :
> 
> Maybe this information could be useful in some way...
> 
> Randall Hopper wrote:
>  > [...]
>  >      > mpg123 things.mp2
>  > 
>  >      ----->  APP STARTUP PRINTS:
>  >      start sb_reset_dsp
>  >      done RESET 1
>  >      done tenmicrosec
>  >      done RESET 0
>  >      isa_dmastart: channel 5 busy
>  > 
>  >      ----->  THEN WHEN I CTRL-C, I ALWAYS SEE THIS:
>  >      dmabuf 2 
>  >      dmabuf 1 
>  > 
>  >      ----->  IF THE /dev/dsp close() DIDN'T HANG, THAT'S IT.
>  > 
>  >      ----->  BUT IF THE close() HUNG, I SEE THIS LINE AGAIN AND AGAIN, PRI
NTING
>  >      ----->  ONCE EVERY 10 SECONDS:
>  >      dmabuf 1 
> 
> Using the soundrivers of 2.2.2 (Vox 2.9, I think) with an
> AWE32, I also experience hangs sometimes when /dev/dsp is
> closed, BUT only for about 10 seconds.  It never blocks
> forever (maybe it checks for a timeout).
> 
> To be honest, I first suspected a bug in mpg123, but I've
> looked at the respective parts of the code for days, and
> I haven't been able to spot a bug...
> 
> Regards
>    Oliver
> 
> PS:  I just released mpg123 0.59k, see http://mpg.123.org/
> Doesn't fix the block-on-close problem though, of course.
> 
> PPS:  In case you didn't notice, I'm not that much familiar
> with all that sound driver stuff.  I assume it's not possible
> to install those newer "guspnp" drivers in 2.2.2, is it?
> Stability is an absolute requirement for me, so I don't want
> to install 3.0-current.
> 
> -- 
> Oliver Fromme, Leibnizstr. 18-61, 38678 Clausthal, Germany
> (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)





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