summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uaudio.c')
-rw-r--r--sys/dev/usb/uaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uaudio.c b/sys/dev/usb/uaudio.c
index a950308ba8e..6ae07fa6026 100644
--- a/sys/dev/usb/uaudio.c
+++ b/sys/dev/usb/uaudio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uaudio.c,v 1.146 2019/09/05 05:38:40 ratchov Exp $ */
+/* $OpenBSD: uaudio.c,v 1.147 2020/02/05 14:26:26 ratchov Exp $ */
/*
* Copyright (c) 2018 Alexandre Ratchov <alex@caoua.org>
*
@@ -2862,7 +2862,7 @@ uaudio_stream_open(struct uaudio_softc *sc, int dir,
*
* UAUDIO_NXFERS * (blksz - min_blksz)
*/
- min_blksz = (((uint64_t)blksz << 32) / s->spf_max * s->spf_max) >> 32;
+ min_blksz = (((uint64_t)blksz << 32) / s->spf_max * s->spf_min) >> 32;
/* round to sample size */
min_blksz -= min_blksz % bpa;