Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Check hardare precision in vchan_autoconfig. Passes...
details: https://anonhg.NetBSD.org/src/rev/0f2639ff7048
branches: trunk
changeset: 354556:0f2639ff7048
user: nat <nat%NetBSD.org@localhost>
date: Wed Jun 21 08:40:05 2017 +0000
description:
Check hardare precision in vchan_autoconfig. Passes atf test again.
diffstat:
sys/dev/audio.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 85584d4f4129 -r 0f2639ff7048 sys/dev/audio.c
--- a/sys/dev/audio.c Wed Jun 21 07:39:04 2017 +0000
+++ b/sys/dev/audio.c Wed Jun 21 08:40:05 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.361 2017/06/20 08:33:11 nat Exp $ */
+/* $NetBSD: audio.c,v 1.362 2017/06/21 08:40:05 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.361 2017/06/20 08:33:11 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.362 2017/06/21 08:40:05 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -6087,7 +6087,9 @@
AUMODE_PLAY | AUMODE_PLAY_ALL |
AUMODE_RECORD, &sc->sc_format[0]);
if (vc->sc_npfilters > 0 &&
- (vc->sc_mpr.s.param.
+ (vc->sc_mpr.s.param.precision !=
+ sc->sc_precision ||
+ vc->sc_mpr.s.param.
sample_rate != sc->sc_frequency ||
vc->sc_mpr.s.param.
channels != sc->sc_channels))
Home |
Main Index |
Thread Index |
Old Index