Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Audio passed the atf test again.
details: https://anonhg.NetBSD.org/src/rev/f433eeb45f7e
branches: trunk
changeset: 351370:f433eeb45f7e
user: nat <nat%NetBSD.org@localhost>
date: Sat Feb 11 08:36:30 2017 +0000
description:
Audio passed the atf test again.
diffstat:
sys/dev/audio.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r cf264ccb6fb6 -r f433eeb45f7e sys/dev/audio.c
--- a/sys/dev/audio.c Sat Feb 11 08:14:05 2017 +0000
+++ b/sys/dev/audio.c Sat Feb 11 08:36:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.302 2017/02/10 19:31:42 nat Exp $ */
+/* $NetBSD: audio.c,v 1.303 2017/02/11 08:36:30 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.302 2017/02/10 19:31:42 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.303 2017/02/11 08:36:30 nat Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -5526,7 +5526,7 @@
for (m = 0; m < cc; m++) {
orig[m] += (int8_t)((int32_t)(tomix[m] *
(vc->sc_swvol + 1)) / (sc->sc_opens *
- 255));
+ 256));
}
if (&orig[m] >= (int8_t *)sc->sc_pr.s.end)
@@ -5563,7 +5563,7 @@
for (m = 0; m < cc / 2; m++) {
orig[m] += (int16_t)((int32_t)(tomix[m] *
(vc->sc_swvol + 1)) / (sc->sc_opens *
- 255));
+ 256));
}
if (&orig[m] >= (int16_t *)sc->sc_pr.s.end)
@@ -5600,7 +5600,7 @@
for (m = 0; m < cc / 4; m++) {
orig[m] += (int32_t)((int32_t)(tomix[m] *
(vc->sc_swvol + 1)) / (sc->sc_opens *
- 255));
+ 256));
}
if (&orig[m] >= (int32_t *)sc->sc_pr.s.end)
Home |
Main Index |
Thread Index |
Old Index