Source-Changes-HG archive

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

[src/trunk]: src/sys/dev AU_RING_SIZE -> s.bufsize in audio_initbufs.



details:   https://anonhg.NetBSD.org/src/rev/ec5c5195593b
branches:  trunk
changeset: 827572:ec5c5195593b
user:      nat <nat%NetBSD.org@localhost>
date:      Sat Nov 04 01:50:48 2017 +0000

description:
AU_RING_SIZE -> s.bufsize in audio_initbufs.

diffstat:

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

diffs (27 lines):

diff -r 3e781d640ca3 -r ec5c5195593b sys/dev/audio.c
--- a/sys/dev/audio.c   Sat Nov 04 01:46:56 2017 +0000
+++ b/sys/dev/audio.c   Sat Nov 04 01:50:48 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.428 2017/11/03 21:15:18 nat Exp $  */
+/*     $NetBSD: audio.c,v 1.429 2017/11/04 01:50:48 nat Exp $  */
 
 /*-
  * Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.428 2017/11/03 21:15:18 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.429 2017/11/04 01:50:48 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -2012,7 +2012,7 @@
                blksize = sc->hw_if->round_blocksize(sc->hw_hdl, blksize,
                    mode, &rp->s.param);
        } else {
-               int hwblksize = AU_RING_SIZE;
+               int hwblksize = rp->s.bufsize;
                if (sc->hw_if->round_blocksize) {
                        if (audio_can_capture(sc))
                                hwblksize = sc->sc_hwvc->sc_mpr.blksize;



Home | Main Index | Thread Index | Old Index