Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Don't call initbufs before audio_set_defaults. It i...



details:   https://anonhg.NetBSD.org/src/rev/e706c3ffcc45
branches:  trunk
changeset: 821062:e706c3ffcc45
user:      nat <nat%NetBSD.org@localhost>
date:      Sun Jan 22 19:52:02 2017 +0000

description:
Don't call initbufs before audio_set_defaults.  It is called in
audiosetinfo anyway.

Addresses PR kern/51707.

diffstat:

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

diffs (27 lines):

diff -r 07b077d14ed5 -r e706c3ffcc45 sys/dev/audio.c
--- a/sys/dev/audio.c   Sun Jan 22 19:47:00 2017 +0000
+++ b/sys/dev/audio.c   Sun Jan 22 19:52:02 2017 +0000
@@ -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@localhost>
@@ -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 @@
                return error;
        }
 
-       audio_initbufs(sc, n);
-
        if (sc->sc_opens == 0) {
                if (hw->open != NULL) {
                        mutex_enter(sc->sc_intr_lock);



Home | Main Index | Thread Index | Old Index