Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/dev/audio Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/9d11c19afa91
branches:  netbsd-9
changeset: 461224:9d11c19afa91
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Nov 19 12:58:29 2019 +0000

description:
Pull up following revision(s) (requested by isaki in ticket #448):

        sys/dev/audio/audio.c: revision 1.33

Fix a wrong calculation of recording ring buffer.  Reported on
http://mail-index.netbsd.org/current-users/2019/11/04/msg036976.html

diffstat:

 sys/dev/audio/audio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 13373808a37c -r 9d11c19afa91 sys/dev/audio/audio.c
--- a/sys/dev/audio/audio.c     Tue Nov 19 12:56:48 2019 +0000
+++ b/sys/dev/audio/audio.c     Tue Nov 19 12:58:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.28.2.3 2019/10/06 11:02:32 martin Exp $    */
+/*     $NetBSD: audio.c,v 1.28.2.4 2019/11/19 12:58:29 martin Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -142,7 +142,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.3 2019/10/06 11:02:32 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.28.2.4 2019/11/19 12:58:29 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -4510,7 +4510,7 @@
                int bytes1;
                int bytes2;
 
-               bytes1 = auring_get_contig_used(usrbuf);
+               bytes1 = auring_get_contig_free(usrbuf);
                KASSERT(bytes1 % framesize == 0);
                memcpy((uint8_t *)usrbuf->mem + auring_tail(usrbuf),
                    (uint8_t *)outbuf->mem + outbuf->head * framesize,



Home | Main Index | Thread Index | Old Index