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 check hardware precision in autoconfig as some...



details:   https://anonhg.NetBSD.org/src/rev/68f059531cbe
branches:  trunk
changeset: 351154:68f059531cbe
user:      nat <nat%NetBSD.org@localhost>
date:      Fri Feb 03 20:13:52 2017 +0000

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

diffstat:

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

diffs (27 lines):

diff -r bee5d99b7ce8 -r 68f059531cbe sys/dev/audio.c
--- a/sys/dev/audio.c   Fri Feb 03 20:09:49 2017 +0000
+++ b/sys/dev/audio.c   Fri Feb 03 20:13:52 2017 +0000
@@ -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 <nathanialsloss%yahoo.com.au@localhost>
@@ -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 @@
                                    (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;
 



Home | Main Index | Thread Index | Old Index