Source-Changes-HG archive

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

[src/netbsd-9]: src/sys/dev/usb Pull up following revision(s) (requested by i...



details:   https://anonhg.NetBSD.org/src/rev/72b4d634ff76
branches:  netbsd-9
changeset: 953386:72b4d634ff76
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 07 18:43:25 2021 +0000

description:
Pull up following revision(s) (requested by isaki in ticket #1225):

        sys/dev/usb/uaudio.c: revision 1.169

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 725ed3ebfe67 -r 72b4d634ff76 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Fri Mar 05 13:57:33 2021 +0000
+++ b/sys/dev/usb/uaudio.c      Sun Mar 07 18:43:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.161.2.1 2019/11/19 12:56:48 martin Exp $  */
+/*     $NetBSD: uaudio.c,v 1.161.2.2 2021/03/07 18:43:25 martin 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.161.2.1 2019/11/19 12:56:48 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.161.2.2 2021/03/07 18:43:25 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -3003,7 +3003,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