Fix my copy-and-paste bug in rev1.160.
This fixes recording sample dropout.
This commit is contained in:
parent
765c6b80ae
commit
0322faf76e
@ -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 setmode,
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user