Module Name:    src
Committed By:   nat
Date:           Sat Nov  4 01:50:48 UTC 2017

Modified Files:
        src/sys/dev: audio.c

Log Message:
AU_RING_SIZE -> s.bufsize in audio_initbufs.


To generate a diff of this commit:
cvs rdiff -u -r1.428 -r1.429 src/sys/dev/audio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/audio.c
diff -u src/sys/dev/audio.c:1.428 src/sys/dev/audio.c:1.429
--- src/sys/dev/audio.c:1.428	Fri Nov  3 21:15:18 2017
+++ src/sys/dev/audio.c	Sat Nov  4 01:50:48 2017
@@ -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 <nathanialsl...@yahoo.com.au>
@@ -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 @@ audio_init_ringbuffer(struct audio_softc
 		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;

Reply via email to