Source-Changes-HG archive

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

[src/trunk]: src/sys/dev hw_if->set_params is mandatory, so it will never be ...



details:   https://anonhg.NetBSD.org/src/rev/a9397b0780aa
branches:  trunk
changeset: 826182:a9397b0780aa
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sun Aug 20 05:12:17 2017 +0000

description:
hw_if->set_params is mandatory, so it will never be NULL.

diffstat:

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

diffs (27 lines):

diff -r c0465d52f58b -r a9397b0780aa sys/dev/audio.c
--- a/sys/dev/audio.c   Sun Aug 20 03:13:04 2017 +0000
+++ b/sys/dev/audio.c   Sun Aug 20 05:12:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: audio.c,v 1.402 2017/08/20 03:13:04 isaki Exp $        */
+/*     $NetBSD: audio.c,v 1.403 2017/08/20 05:12:17 isaki 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.402 2017/08/20 03:13:04 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.403 2017/08/20 05:12:17 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -5731,7 +5731,7 @@
 
        KASSERT(mutex_owned(sc->sc_lock));
 
-       if (vc == sc->sc_hwvc && sc->hw_if->set_params != NULL) {
+       if (vc == sc->sc_hwvc) {
                sc->sc_ready = true;
                if (sc->sc_vchan_params.precision == 8)
                        play->encoding = rec->encoding = AUDIO_ENCODING_SLINEAR;



Home | Main Index | Thread Index | Old Index