From tonym@whale.angis.org.au  Wed May 20 18:05:00 1998
Received: from whale.angis.org.au (whale.angis.org.au [129.78.25.117])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA08708
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 May 1998 18:04:57 -0700 (PDT)
          (envelope-from tonym@whale.angis.org.au)
Received: (from tonym@localhost)
	by whale.angis.org.au (8.8.8/8.8.7) id LAA29772;
	Thu, 21 May 1998 11:04:54 +1000 (EST)
	(envelope-from tonym)
Message-Id: <199805210104.LAA29772@whale.angis.org.au>
Date: Thu, 21 May 1998 11:04:54 +1000 (EST)
From: tonym@angis.org.au
Reply-To: tonym@angis.org.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: tsleep and new snd (pcm0)
X-Send-Pr-Version: 3.2

>Number:         6702
>Category:       kern
>Synopsis:       tsleep and new snd (pcm0)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    luigi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 20 18:10:04 PDT 1998
>Closed-Date:    Sun Dec 27 03:57:29 PST 1998
>Last-Modified:  Sun Dec 27 03:58:19 PST 1998
>Originator:     Tony Maher
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
University of Sydney
>Environment:

Kernel config file:

controller      pnp0

device pcm0     at isa? port ? tty irq ? drq ? flags ? vector pcmintr

>Description:

Since making a new kernel incorporating the new snd code (pcm0)
emiclock has problems starting up. It appears but remains a blank white
image. When it is killed the console logs 
tsleep returns -1

It doesn't appear to affect other clocks from the ports section.


>How-To-Repeat:

Just start emiclock with pcm0 configured in kernel.

>Fix:
	
By starting then killing /usr/X11R6/bin/auvoxware emiclock will then work
normally. You can restart auvoxware and no problems.
But subsequently started emiclocks will be blank.

I note in problem report 5034 they write:

"Not sure, but somewhere some code is probably calling tsleep()
without the PCATCH argument (as it should)."

Tsleep is called in code in /usr/src/sys/i386/isa/snd with and without PCATCH.

Removing pcm0 and rebuilding kernel also solves the problem ;-)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->luigi 
Responsible-Changed-By: phk 
Responsible-Changed-When: Sat May 23 00:44:58 PDT 1998 
Responsible-Changed-Why:  
sound issue 

From: Tony Maher <tonym@angis.usyd.edu.au>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: kern/6702: tsleep and new snd (pcm0)
Date: Fri, 4 Sep 1998 20:58:41 +1000 (EST)

 Hello,
 
 I think this PR can be closed as it basically duplicates PR kern/6349 which is 
 more detailed.
 
 thanks
 tonym
State-Changed-From-To: open->closed 
State-Changed-By: luigi 
State-Changed-When: Sun Dec 27 03:57:29 PST 1998 
State-Changed-Why:  
probably fixed in october -- luigi 
>Unformatted:
