linux/drivers/usb
Pavel Hofman 0560c9c552 usb: gadget: f_uac2: fixed EP-IN wMaxPacketSize
Async feedback patches broke enumeration on Windows 10 previously fixed
by commit 789ea77310 ("usb: gadget: f_uac2: always increase endpoint
max_packet_size by one audio slot").

While the existing calculation for EP OUT capture for async mode yields
size+1 frame due to uac2_opts->fb_max > 0, playback side lost the +1
feature.  Therefore the +1 frame addition must be re-introduced for
playback. Win10 enumerates the device only when both EP IN and EP OUT
max packet sizes are (at least) +1 frame.

Fixes: e89bb42883 ("usb: gadget: u_audio: add real feedback implementation")
Cc: stable <stable@vger.kernel.org>
Tested-by: Henrik Enquist <henrik.enquist@gmail.com>
Tested-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Link: https://lore.kernel.org/r/20210924080027.5362-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-05 13:50:09 +02:00
..
atm usb: atm: cxacru: Fix typo in comment 2021-05-21 20:05:40 +02:00
c67x00 usb/c67x00: Replace tasklet with work 2021-01-26 18:36:37 +01:00
cdns3 usb: cdns3: fix race condition before setting doorbell 2021-09-14 10:32:41 +02:00
chipidea usb: chipidea: ci_hdrc_imx: Also search for 'phys' phandle 2021-10-05 13:47:26 +02:00
class usb: cdc-wdm: Fix check for WWAN 2021-10-05 13:49:23 +02:00
common Partially revert "usb: Kconfig: using select for USB_COMMON dependency" 2021-10-05 13:45:16 +02:00
core usb: core: hcd: Modularize HCD stop configuration in usb_stop_hcd() 2021-09-14 10:41:30 +02:00
dwc2 usb: dwc2: gadget: Fix ISOC transfer complete handling for DDMA 2021-09-14 10:42:00 +02:00
dwc3 usb: dwc3: gadget: Revert "set gadgets parent to the right controller" 2021-10-05 13:44:24 +02:00
early usb: early: ehci-dbgp: convert to readl_poll_timeout_atomic() 2020-09-25 16:29:09 +02:00
gadget usb: gadget: f_uac2: fixed EP-IN wMaxPacketSize 2021-10-05 13:50:09 +02:00
host usb: xhci: tegra: mark PM functions as __maybe_unused 2021-10-05 13:38:54 +02:00
image USB: microtek: use set_host_byte() 2020-09-16 12:42:10 +02:00
isp1760 usb: isp1760: otg control register access 2021-08-27 16:11:39 +02:00
misc usb: misc: brcmstb-usb-pinmap: add IRQ check 2021-08-13 13:05:50 +02:00
mon
mtu3 usb: mtu3: fix random remote wakeup 2021-08-26 13:41:52 +02:00
musb usb: musb: tusb6010: uninitialized data in tusb_fifo_write_unaligned() 2021-09-21 16:38:21 +02:00
phy usb: phy: tahvo: add IRQ check 2021-08-16 18:57:19 +02:00
renesas_usbhs usb: renesas_usbhs: Fix spelling mistake "faile" -> "failed" 2021-08-27 10:29:32 +02:00
roles usb: roles: add helper usb_role_string() 2021-05-27 09:17:18 +02:00
serial USB: serial: option: add device id for Foxconn T99W265 2021-09-24 09:32:11 +02:00
storage usb-storage: Add quirk for ScanLogic SL11R-IDE older than 2.6c 2021-09-21 16:37:52 +02:00
typec usb: typec: tcpm: handle SRC_STARTUP state if cc changes 2021-10-05 13:47:00 +02:00
usbip usbip:vhci_hcd USB port can get stuck in the disabled state 2021-08-26 13:29:27 +02:00
Kconfig usb: remove reference to deleted config STB03xxx 2021-08-18 15:32:19 +02:00
Makefile usb: host: remove line for obsolete config USB_HWA_HCD 2021-08-18 15:32:19 +02:00
usb-skeleton.c