Don't call initbufs before audio_set_defaults. It is called in

audiosetinfo anyway.

Addresses PR kern/51707.
This commit is contained in:
nat 2017-01-22 19:52:02 +00:00
parent 175335403f
commit 6d2afc0315
1 changed files with 2 additions and 4 deletions

View File

@ -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 <nathanialsloss@yahoo.com.au>
@ -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 *sc, int flags, int ifmt,
return error;
}
audio_initbufs(sc, n);
if (sc->sc_opens == 0) {
if (hw->open != NULL) {
mutex_enter(sc->sc_intr_lock);