Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb xhci doesn't like 80 packets per USB interval, b...



details:   https://anonhg.NetBSD.org/src/rev/ba6270f36949
branches:  trunk
changeset: 374522:ba6270f36949
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Apr 30 08:35:52 2023 +0000

description:
xhci doesn't like 80 packets per USB interval, but 40 seems to be fine
for xhci (and ehci).

diffstat:

 sys/dev/usb/uaudio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 95bda153debe -r ba6270f36949 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Sat Apr 29 23:30:18 2023 +0000
+++ b/sys/dev/usb/uaudio.c      Sun Apr 30 08:35:52 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.180 2023/04/23 06:13:35 mlelstv Exp $     */
+/*     $NetBSD: uaudio.c,v 1.181 2023/04/30 08:35:52 mlelstv Exp $     */
 
 /*
  * Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.180 2023/04/23 06:13:35 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.181 2023/04/30 08:35:52 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -105,7 +105,7 @@ int uaudiodebug = 0;
 /* number of USB frames per request, also the number of ms */
 #define UAUDIO_NFRAMES         10
 /* number of microframes per requewst (high, super)  */
-#define UAUDIO_NFRAMES_HI      (UAUDIO_NFRAMES * USB_UFRAMES_PER_FRAME)
+#define UAUDIO_NFRAMES_HI      40
 
 
 #define MIX_MAX_CHAN 8



Home | Main Index | Thread Index | Old Index