Module Name: src Committed By: isaki Date: Mon Feb 15 13:39:18 UTC 2021
Modified Files: src/sys/dev/usb: uaudio.c Log Message: Fix my copy-and-paste bug in rev1.160. This fixes recording sample dropout. To generate a diff of this commit: cvs rdiff -u -r1.168 -r1.169 src/sys/dev/usb/uaudio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/uaudio.c diff -u src/sys/dev/usb/uaudio.c:1.168 src/sys/dev/usb/uaudio.c:1.169 --- src/sys/dev/usb/uaudio.c:1.168 Sun Jan 10 15:50:16 2021 +++ src/sys/dev/usb/uaudio.c Mon Feb 15 13:39:18 2021 @@ -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 @@ uaudio_set_format(void *addr, int setmod 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) {