Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Allow maxused to be an odd number of bytes. This ma...
details: https://anonhg.NetBSD.org/src/rev/71ca32726703
branches: trunk
changeset: 826844:71ca32726703
user: nat <nat%NetBSD.org@localhost>
date: Mon Oct 02 07:06:15 2017 +0000
description:
Allow maxused to be an odd number of bytes. This makes single byte
conversions work for the test described in the PR.
Addresses another part of PR kern/52586.
diffstat:
sys/dev/auconv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8785d494dab9 -r 71ca32726703 sys/dev/auconv.c
--- a/sys/dev/auconv.c Mon Oct 02 06:37:04 2017 +0000
+++ b/sys/dev/auconv.c Mon Oct 02 07:06:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auconv.c,v 1.32 2017/10/02 06:06:43 nat Exp $ */
+/* $NetBSD: auconv.c,v 1.33 2017/10/02 07:06:15 nat Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auconv.c,v 1.32 2017/10/02 06:06:43 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auconv.c,v 1.33 2017/10/02 07:06:15 nat Exp $");
#include <sys/types.h>
#include <sys/audioio.h>
@@ -512,7 +512,7 @@
valid = n_validbits / NBBY; \
target = t_prec / NBBY; \
this = (stream_filter_t *)self; \
- max_used = ((max_used / hw) * hw) & ~1; \
+ max_used = ((max_used / hw) * hw); \
\
if ((err = this->prev->fetch_to(sc, this->prev, this->src, \
max_used))) \
Home |
Main Index |
Thread Index |
Old Index