usb: device_next: uac2: Write feedback as soon as possible

Queue explicit feedback write once the previous one finishes in order to
make it possible to cope with 8x faster High-Speed pace. This matches
the originally intended behavior described in comment.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
This commit is contained in:
Tomasz Moń 2024-09-09 09:21:23 +02:00 committed by Carles Cufí
parent 2551ddca11
commit d5aa42f93a

View file

@ -634,6 +634,8 @@ static int uac2_request(struct usbd_class_data *const c_data, struct net_buf *bu
/* Reschedule the read or explicit feedback write */
if (USB_EP_DIR_IS_OUT(ep)) {
schedule_iso_out_read(c_data, ep, mps, terminal);
} else if (is_feedback) {
write_explicit_feedback(c_data, ep, cfg->as_terminals[as_idx]);
}
return 0;