Module Name:    src
Committed By:   nat
Date:           Sun Jun 25 02:47:28 UTC 2017

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

Log Message:
Check validbits against precision in vchan_autoconfig.  At present
validbits != precision is not supported.

This change will most likely break autoconfig on vs(4), for these machines
the parameters can be set to the paramaters reported at attach time via
sysctl.


To generate a diff of this commit:
cvs rdiff -u -r1.363 -r1.364 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.363 src/sys/dev/audio.c:1.364
--- src/sys/dev/audio.c:1.363	Sun Jun 25 02:11:40 2017
+++ src/sys/dev/audio.c	Sun Jun 25 02:47:28 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.363 2017/06/25 02:11:40 nat Exp $	*/
+/*	$NetBSD: audio.c,v 1.364 2017/06/25 02:47:28 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.363 2017/06/25 02:11:40 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.364 2017/06/25 02:47:28 nat Exp $");
 
 #ifdef _KERNEL_OPT
 #include "audio.h"
@@ -6089,6 +6089,8 @@ vchan_autoconfig(struct audio_softc *sc)
 				if (vc->sc_npfilters > 0 &&
 				    (vc->sc_mpr.s.param.precision !=
 							sc->sc_precision ||
+				    vc->sc_mpr.s.param.validbits !=
+							sc->sc_precision ||
 				    vc->sc_mpr.s.param.
 					sample_rate != sc->sc_frequency ||
 				    vc->sc_mpr.s.param.

Reply via email to