Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sbus round_blocksize must return a multiple of the f...



details:   https://anonhg.NetBSD.org/src/rev/51e7a930b021
branches:  trunk
changeset: 969724:51e7a930b021
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Feb 29 06:06:29 2020 +0000

description:
round_blocksize must return a multiple of the framesize
even if passed blocksize is greater than the upper limit.

diffstat:

 sys/dev/sbus/dbri.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 02db194a167d -r 51e7a930b021 sys/dev/sbus/dbri.c
--- a/sys/dev/sbus/dbri.c       Sat Feb 29 06:03:55 2020 +0000
+++ b/sys/dev/sbus/dbri.c       Sat Feb 29 06:06:29 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dbri.c,v 1.41 2019/06/08 08:02:38 isaki Exp $  */
+/*     $NetBSD: dbri.c,v 1.42 2020/02/29 06:06:29 isaki Exp $  */
 
 /*
  * Copyright (C) 1997 Rudolf Koenig (rfkoenig%immd4.informatik.uni-erlangen.de@localhost)
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.41 2019/06/08 08:02:38 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dbri.c,v 1.42 2020/02/29 06:06:29 isaki Exp $");
 
 #include "audio.h"
 #if NAUDIO > 0
@@ -1636,8 +1636,8 @@
                        const audio_params_t *param)
 {
 
-       if (bs > 0x1fff)
-               return 0x1fff;
+       if (bs > 0x1ffc)
+               return 0x1ffc;
        return bs;
 }
 



Home | Main Index | Thread Index | Old Index