Module Name:    src
Committed By:   nat
Date:           Fri Feb  3 20:13:52 UTC 2017

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

Log Message:
Don't check hardware precision in autoconfig as some drivers e.g vs(4) the
hardware precision is 4 bits.

Addresses PR/kern 51879: vs(4) audio attach failed.


To generate a diff of this commit:
cvs rdiff -u -r1.299 -r1.300 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.299 src/sys/dev/audio.c:1.300
--- src/sys/dev/audio.c:1.299	Fri Feb  3 20:07:55 2017
+++ src/sys/dev/audio.c	Fri Feb  3 20:13:52 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: audio.c,v 1.299 2017/02/03 20:07:55 nat Exp $	*/
+/*	$NetBSD: audio.c,v 1.300 2017/02/03 20:13:52 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.299 2017/02/03 20:07:55 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.300 2017/02/03 20:13:52 nat Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -5966,8 +5966,6 @@ vchan_autoconfig(struct audio_softc *sc)
 				    (vc->sc_mpr.s.param.
 					sample_rate != sc->sc_iffreq ||
 				    vc->sc_mpr.s.param.
-				       precision != sc->sc_precision ||
-				    vc->sc_mpr.s.param.
 					 channels != sc->sc_channels))
 					error = EINVAL;
 

Reply via email to