Subject: kern/3079: audio device not ready for write soon enough
To: None <gnats-bugs@gnats.netbsd.org>
From: jason <jason@jlbaker.async.csuohio.edu>
List: netbsd-bugs
Date: 01/03/1997 16:34:50
>Number:         3079
>Category:       kern
>Synopsis:       audio device not ready for write soon enough
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan  3 13:50:01 1997
>Last-Modified:
>Originator:     jason baker
>Organization:
	
>Release:        <NetBSD-current source date>
>Environment:
System: NetBSD jlbaker.async.csuohio.edu 1.0A NetBSD 1.0A (HASSAN) #41: Thu Oct 24 11:00:34 EDT 1996 jason@jlbaker.async.csuohio.edu:/usr/src/sys-1.0A/arch/i386/compile/HASSAN i386


>Description:
	audio_select uses a different test than audio_pint, and with a
low water mark of 1, the device is only ready when the last block has
finished playing and a silence block has started

>How-To-Repeat:
	
>Fix:
diff -c -r1.2 /sys/dev/audio.c
*** /sys/dev/audio.c	1996/06/26 20:32:27	1.2
--- /sys/dev/audio.c	1996/10/24 14:57:17
***************
*** 1185,1191 ****
  		 * right? Or maybe specific to half-duplex devices?
  		 */
  		if (sc->sc_mode & AUMODE_RECORD ||
! 		    sc->pr.nblk < sc->sc_lowat) {
  			splx(s);
  			return (1);
  		}
--- 1185,1191 ----
  		 * right? Or maybe specific to half-duplex devices?
  		 */
  		if (sc->sc_mode & AUMODE_RECORD ||
! 		    sc->pr.nblk <= sc->sc_lowat) {
  			splx(s);
  			return (1);
  		}




>Audit-Trail:
>Unformatted: