Subject: Re: kern/32405 (Looks like SNDCTL_DSP_GETOPTR ioctl went wrong in auich(4) between 2.1 and 3.0)
To: None <kent@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: TAMURA Kent <kent@NetBSD.org>
List: netbsd-bugs
Date: 05/07/2006 15:25:01
The following reply was made to PR kern/32405; it has been noted by GNATS.

From: TAMURA Kent <kent@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/32405 (Looks like SNDCTL_DSP_GETOPTR ioctl went wrong in auich(4) between 2.1 and 3.0)
Date: Mon,  8 May 2006 00:21:31 +0900 (JST)

 > I confirmed SNDCTL_DSP_GETOPTR's count_info::bytes value is never updated.
 
 Oops, it was incorrect.
 count_info::blocks has wrong value.
 
 Stephane, could you try the following patch?  If the patch
 doesn't work, would you tell me the version of your xine?  I
 couldn't find choices such as getodelay and getoptr with
 xine-lib-1.0.3a and xine-ui-0.99.4.
 
 Index: sys/dev/audio.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/audio.c,v
 retrieving revision 1.204
 diff -u -r1.204 audio.c
 --- sys/dev/audio.c     19 Apr 2006 14:10:58 -0000      1.204
 +++ sys/dev/audio.c     7 May 2006 15:16:27 -0000
 @@ -1181,6 +1181,7 @@
         rp->s.outp = rp->s.inp = rp->s.start;
         rp->s.used = 0;
         rp->stamp = 0;
 +       rp->stamp_last = 0;
         rp->fstamp = 0;
         rp->drops = 0;
         rp->pause = FALSE;
 
 -- 
 TAMURA Kent <kent_2006 at hauN.org> <kent at NetBSD.org>