Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Calc latency when altering precision, frequency and ...
details: https://anonhg.NetBSD.org/src/rev/dec4155302c0
branches: trunk
changeset: 357253:dec4155302c0
user: nat <nat%NetBSD.org@localhost>
date: Fri Nov 03 05:09:49 2017 +0000
description:
Calc latency when altering precision, frequency and channels sysctls.
diffstat:
sys/dev/audio.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r f598b76fdcfc -r dec4155302c0 sys/dev/audio.c
--- a/sys/dev/audio.c Fri Nov 03 05:07:37 2017 +0000
+++ b/sys/dev/audio.c Fri Nov 03 05:09:49 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.424 2017/11/03 05:07:37 nat Exp $ */
+/* $NetBSD: audio.c,v 1.425 2017/11/03 05:09:49 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.424 2017/11/03 05:07:37 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.425 2017/11/03 05:09:49 nat Exp $");
#ifdef _KERNEL_OPT
#include "audio.h"
@@ -5916,6 +5916,8 @@
if (error)
aprint_error_dev(sc->sc_dev, "Error setting frequency, "
"please check hardware capabilities\n");
+ if (error == 0)
+ audio_calc_latency(sc);
mutex_exit(sc->sc_lock);
return error;
@@ -5968,6 +5970,8 @@
if (error)
aprint_error_dev(sc->sc_dev, "Error setting precision, "
"please check hardware capabilities\n");
+ if (error == 0)
+ audio_calc_latency(sc);
mutex_exit(sc->sc_lock);
return error;
@@ -6009,6 +6013,8 @@
if (error)
aprint_error_dev(sc->sc_dev, "Error setting channels, "
"please check hardware capabilities\n");
+ if (error == 0)
+ audio_calc_latency(sc);
mutex_exit(sc->sc_lock);
return error;
Home |
Main Index |
Thread Index |
Old Index