linux-stable/drivers/usb
Ruslan Bilovol a9cf871518 usb: gadget: f_uac2: fix AC Interface Header Descriptor wTotalLength
As per UAC2 spec (ch. 4.7.2), wTotalLength of AC Interface
Header Descriptor "includes the combined length of this
descriptor header and all Clock Source, Unit and Terminal
descriptors."

Thus add its size to its wTotalLength.

Also after recent changes wTotalLength is calculated
dynamically, update static definition of uac2_ac_header_descriptor
accordingly

Fixes: 132fcb4608 ("usb: gadget: Add Audio Class 2.0 Driver")
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
2020-07-24 16:45:15 +03:00
..
atm usb: Use fallthrough pseudo-keyword 2020-07-10 08:55:17 +02:00
c67x00 Linux 5.8-rc6 2020-07-20 09:41:30 +02:00
cdns3 usb: cdns3: drd: simplify *switch_gadet and *switch_host 2020-07-24 16:45:13 +03:00
chipidea Linux 5.8-rc6 2020-07-20 09:41:30 +02:00
class usb: class: cdc-wdm: Provide description for usb_cdc_wdm_register()'s manage_power arg 2020-07-15 17:25:57 +02:00
common USB: Replace HTTP links with HTTPS ones 2020-07-21 13:41:57 +02:00
core usb: usbfs: stop using compat_alloc_user_space 2020-07-22 13:13:22 +02:00
dwc2 usb: dwc2: Fix error path in gadget registration 2020-07-24 16:45:12 +03:00
dwc3 usb: dwc3: meson-g12a: fix shared reset control use 2020-07-24 16:45:11 +03:00
early usb: early: xhci-dbc: File headers are not good candidates for kerneldoc 2020-07-09 17:19:59 +02:00
gadget usb: gadget: f_uac2: fix AC Interface Header Descriptor wTotalLength 2020-07-24 16:45:15 +03:00
host usb: ohci-omap: Convert to use GPIO descriptors 2020-07-21 13:42:37 +02:00
image usb: Use fallthrough pseudo-keyword 2020-07-10 08:55:17 +02:00
isp1760 usb: Use fallthrough pseudo-keyword 2020-07-10 08:55:17 +02:00
misc usb: appledisplay: remove needless check before usb_free_coherent() 2020-07-21 13:41:58 +02:00
mon USB: mon: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 09:49:28 +01:00
mtu3 usb: mtu3: mtu3_trace: Supply missing mtu3_debug.h include file 2020-07-15 17:25:57 +02:00
musb USB: musb: Remove unused inline function 2020-07-15 16:48:10 +02:00
phy USB: PHY: JZ4770: Reformat the code to align it. 2020-07-24 16:45:14 +03:00
renesas_usbhs usb: Use fallthrough pseudo-keyword 2020-07-10 08:55:17 +02:00
roles usb: roles: Switch on role-switch uevent reporting 2020-05-13 14:20:49 +02:00
serial Linux 5.8-rc6 2020-07-20 09:41:30 +02:00
storage USB: storage: replace HTTP links with HTTPS ones 2020-07-09 18:06:12 +02:00
typec usb: typec: tcpm: Stay in BIST mode till hardreset or unattached 2020-07-21 13:38:21 +02:00
usbip usbip: Use fallthrough pseudo-keyword 2020-07-09 18:06:35 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile USB: Changes for v5.4 merge window 2019-09-02 19:20:57 +02:00
usb-skeleton.c USB: usb-skeleton: drop redundant in-urb check 2019-10-10 12:41:19 +02:00