Module Name: src
Committed By: nat
Date: Sun Jan 22 19:52:02 UTC 2017
Modified Files:
src/sys/dev: audio.c
Log Message:
Don't call initbufs before audio_set_defaults. It is called in
audiosetinfo anyway.
Addresses PR kern/51707.
To generate a diff of this commit:
cvs rdiff -u -r1.294 -r1.295 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.294 src/sys/dev/audio.c:1.295
--- src/sys/dev/audio.c:1.294 Sat Jan 21 23:37:17 2017
+++ src/sys/dev/audio.c Sun Jan 22 19:52:02 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.294 2017/01/21 23:37:17 nat Exp $ */
+/* $NetBSD: audio.c,v 1.295 2017/01/22 19:52:02 nat Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <[email protected]>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.294 2017/01/21 23:37:17 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.295 2017/01/22 19:52:02 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -1926,8 +1926,6 @@ audio_open(dev_t dev, struct audio_softc
return error;
}
- audio_initbufs(sc, n);
-
if (sc->sc_opens == 0) {
if (hw->open != NULL) {
mutex_enter(sc->sc_intr_lock);