Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci auich_round_blocksize: never return 0 as blocksize
details: https://anonhg.NetBSD.org/src/rev/07ba3e70a3a4
branches: trunk
changeset: 350865:07ba3e70a3a4
user: martin <martin%NetBSD.org@localhost>
date: Wed Jan 25 06:33:52 2017 +0000
description:
auich_round_blocksize: never return 0 as blocksize
diffstat:
sys/dev/pci/auich.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r a0a0644b0907 -r 07ba3e70a3a4 sys/dev/pci/auich.c
--- a/sys/dev/pci/auich.c Wed Jan 25 03:23:29 2017 +0000
+++ b/sys/dev/pci/auich.c Wed Jan 25 06:33:52 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auich.c,v 1.149 2016/07/07 06:55:41 msaitoh Exp $ */
+/* $NetBSD: auich.c,v 1.150 2017/01/25 06:33:52 martin Exp $ */
/*-
* Copyright (c) 2000, 2004, 2005, 2008 The NetBSD Foundation, Inc.
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.149 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.150 2017/01/25 06:33:52 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1068,6 +1068,9 @@
const audio_params_t *param)
{
+ if (blk < 0x40)
+ return 0x40; /* avoid 0 block size */
+
return blk & ~0x3f; /* keep good alignment */
}
Home |
Main Index |
Thread Index |
Old Index