Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Fix my copy-and-paste bug in rev1.160.



details:   https://anonhg.NetBSD.org/src/rev/179994f7a9c8
branches:  trunk
changeset: 952706:179994f7a9c8
user:      isaki <isaki%NetBSD.org@localhost>
date:      Mon Feb 15 13:39:18 2021 +0000

description:
Fix my copy-and-paste bug in rev1.160.
This fixes recording sample dropout.

diffstat:

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

diffs (28 lines):

diff -r fa61ccea55ca -r 179994f7a9c8 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Mon Feb 15 13:03:52 2021 +0000
+++ b/sys/dev/usb/uaudio.c      Mon Feb 15 13:39:18 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.168 2021/01/10 15:50:16 ryoon Exp $       */
+/*     $NetBSD: uaudio.c,v 1.169 2021/02/15 13:39:18 isaki 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.168 2021/01/10 15:50:16 ryoon Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.169 2021/02/15 13:39:18 isaki Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -3020,7 +3020,8 @@
                raltidx = audio_indexof_format(sc->sc_formats, sc->sc_nformats,
                    AUMODE_RECORD, rec);
                /* Transfer should have halted */
-               uaudio_chan_init(&sc->sc_recchan, raltidx, rec, 0);
+               uaudio_chan_init(&sc->sc_recchan, raltidx, rec,
+                   UGETW(sc->sc_alts[raltidx].edesc->wMaxPacketSize));
        }
 
        if ((setmode & AUMODE_PLAY) && sc->sc_playchan.altidx != -1) {



Home | Main Index | Thread Index | Old Index