]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: f_uac2: Add missing companion descriptor for feedback EP
authorJack Pham <jackp@codeaurora.org>
Thu, 9 Sep 2021 17:48:10 +0000 (10:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Sep 2021 08:42:40 +0000 (10:42 +0200)
commit41dc0c2027d76b57f566a42c2876b9335cd1fb2c
tree0b196ed980d2d28ce1d215c36c9dc173110f542f
parentc813c1ccab0649718e260ef380e332e92145ee5b
usb: gadget: f_uac2: Add missing companion descriptor for feedback EP

The f_uac2 function fails to enumerate when connected in SuperSpeed
due to the feedback endpoint missing the companion descriptor.
Add a new ss_epin_fback_desc_comp descriptor and append it behind the
ss_epin_fback_desc both in the static definition of the ss_audio_desc
structure as well as its dynamic construction in setup_headers().

Fixes: 0720949bf6bb ("usb: gadget: f_uac2/u_audio: add feedback endpoint support")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Link: https://lore.kernel.org/r/20210909174811.12534-2-jackp@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uac2.c