Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Check validbits against precision in vchan_autoconfi...



details:   https://anonhg.NetBSD.org/src/rev/cee15973bd7b
branches:  trunk
changeset: 354675:cee15973bd7b
user:      nat <nat%NetBSD.org@localhost>
date:      Sun Jun 25 02:47:28 2017 +0000

description:
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.

diffstat:

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

diffs (27 lines):

diff -r 71d210d2437c -r cee15973bd7b sys/dev/audio.c
--- a/sys/dev/audio.c   Sun Jun 25 02:16:41 2017 +0000
+++ b/sys/dev/audio.c   Sun Jun 25 02:47:28 2017 +0000
@@ -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 <nathanialsloss%yahoo.com.au@localhost>
@@ -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 @@
                                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.



Home | Main Index | Thread Index | Old Index