summaryrefslogtreecommitdiff
path: root/sys/dev/sound/usb
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2010-06-22 21:13:36 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2010-06-22 21:13:36 +0000
commit3851442c61eb824fa73229fe0db8c239a9f1c666 (patch)
tree6cf02114652eb013e1bf0324c7b0226f6b129231 /sys/dev/sound/usb
parent33ba3721c9fb0ee22b7543da38b3faa12e8b6108 (diff)
Notes
Diffstat (limited to 'sys/dev/sound/usb')
-rw-r--r--sys/dev/sound/usb/uaudio.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
index 16132667d5ac..6ca6459d6f43 100644
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -507,8 +507,8 @@ static const struct usb_config
.type = UE_BULK,
.endpoint = UE_ADDR_ANY,
.direction = UE_DIR_IN,
- .bufsize = UMIDI_BULK_SIZE,
- .flags = {.pipe_bof = 1,.short_xfer_ok = 1,},
+ .bufsize = 4, /* bytes */
+ .flags = {.pipe_bof = 1,.short_xfer_ok = 1,.proxy_buffer = 1,},
.callback = &umidi_bulk_read_callback,
},
@@ -3366,10 +3366,6 @@ umidi_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
DPRINTF("actlen=%d bytes\n", actlen);
- if (actlen == 0) {
- /* should not happen */
- goto tr_error;
- }
pos = 0;
pc = usbd_xfer_get_frame(xfer, 0);
@@ -3404,8 +3400,6 @@ umidi_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
return;
default:
-tr_error:
-
DPRINTF("error=%s\n", usbd_errstr(error));
if (error != USB_ERR_CANCELLED) {