NetBSD Problem Report #2060

From gnats  Sat Feb 10 18:59:42 1996
Received: from bloom-beacon.MIT.EDU by pain.lcs.mit.edu (8.6.12/8.6.12) with ESMTP id SAA28399 for <gnats-bugs@gnats.netbsd.org>; Sat, 10 Feb 1996 18:38:39 -0500
Message-Id: <199602102323.SAA00741@pattern.arlington.ma.us>
Date: Sat, 10 Feb 1996 18:23:58 -0500
From: John Kohl <jtk@kolvir.arlington.ma.us>
Reply-To: jtk@kolvir.arlington.ma.us
To: gnats-bugs@gnats.netbsd.org
Subject: would be nice to be able to query for # of audio playback drops
X-Send-Pr-Version: 3.95

>Number:         2060
>Category:       kern
>Synopsis:       would be nice to be able to query for # of audio playback drops
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 10 19:05:05 +0000 1996
>Closed-Date:    Sat Feb 17 02:29:02 +0000 1996
>Last-Modified:  Sat Feb 17 02:30:30 +0000 1996
>Originator:     John Kohl
>Release:        1.1
>Organization:
NetBSD Kernel Hackers `R` Us
>Environment:

System: NetBSD pattern 1.1A NetBSD 1.1A (PATTERN) #15: Sat Feb 10 17:47:26 EST 1996 jtk@pattern:/u3/NetBSD-current/src/sys/arch/i386/compile/PATTERN i386


>Description:
	When using an audio playback tool, it would be nice to be able
to query the audio driver for the number of playback drops.

>How-To-Repeat:
>Fix:
===================================================================
RCS file: dev/RCS/audio.c,v
retrieving revision 1.1.1.4
diff -c -r1.1.1.4 audio.c
*** dev/audio.c	1996/02/09 00:11:58	1.1.1.4
--- dev/audio.c	1996/02/10 23:20:47
***************
*** 1086,1091 ****
--- 1088,1097 ----
  		*(int *)addr = sc->rr.cb_drops != 0;
  		break;

+ 	case AUDIO_PERROR:
+ 		*(int *)addr = sc->pr.cb_drops;
+ 		break;
+ 
  	/*
  	 * How many samples will elapse until mike hears the first
  	 * sample of what we last wrote?
===================================================================
RCS file: sys/RCS/audioio.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 ../sys/audioio.h
*** sys/audioio.h	1995/07/09 15:28:12	1.1.1.2
--- sys/audioio.h	1996/02/08 04:32:16
***************
*** 121,126 ****
--- 121,127 ----
  #define AUDIO_GETENC	_IOWR('A', 28, struct audio_encoding)
  #define AUDIO_GETFD	_IOR('A', 29, int)
  #define AUDIO_SETFD	_IOWR('A', 30, int)
+ #define AUDIO_PERROR	_IOR('A', 31, int)

  /* 
   * Mixer device
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jtk 
State-Changed-When: Fri Feb 16 21:29:02 EST 1996 
State-Changed-Why:  
applied patch. 
. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.